-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
62 lines (55 loc) · 1.52 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
stages:
- build
- unit_tests
- deploy
build:
image: epitechcontent/epitest-docker
stage: build
script:
- make re
server_test:
image: epitechcontent/epitest-docker
stage: unit_tests
script:
- make -C library/csv/
- make -C library/linked_list
- make -C Server build_tests
- ./Server/tests_run -f
graph_test:
image: epitechcontent/epitest-docker
stage: unit_tests
script:
- make -C Graphical build_tests
- ./Graphical/tests_run -f
csv_test:
image: epitechcontent/epitest-docker
stage: unit_tests
script:
- make -C library/csv build_tests
- ./library/csv/tests_run -f
linked_list_test:
image: epitechcontent/epitest-docker
stage: unit_tests
script:
- make -C library/linked_list build_tests
- ./library/linked_list/tests_run -f
covering:
image: epitechcontent/epitest-docker
stage: unit_tests
script:
- make tests_run
full_deploy:
stage: deploy
only:
- master
script:
- echo "Pushing to $TARGET_REPO"
- mkdir -p ~./ssh
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/epitech
- chmod 600 ~/.ssh/epitech
- git config core.sshCommand "ssh -o \"StrictHostKeyChecking=no\" -i ~/.ssh/epitech -F /dev/null"
- git remote remove epitech || true
- git remote add epitech $TARGET_REPO || true
- git push epitech HEAD:$CI_COMMIT_REF_NAME
- git config --unset core.sshCommand
- rm -rf ~/.ssh/epitech