-
Notifications
You must be signed in to change notification settings - Fork 6
/
.gitlab-ci.yml
82 lines (76 loc) · 2.48 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
stages: # List of stages for jobs, and their order of execution
- build
- test
before_script:
- echo "Running global before_script"
- git config --global credential.helper store
- echo "https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.lukevassallo.com" > ~/.git-credentials
after_script:
# - source setup.sh
- ./clean.sh
build-job: # This job runs in the build stage, which runs first.
stage: build
tags:
- general-purpose, gpu-enabled
before_script:
- echo "Running local before script"
- ./install_tools_and_virtual_environment.sh
variables:
GIT_STRATEGY: fetch
script:
- echo "Compiling the code..."
- source setup.sh
- echo ${RL_PCB}
- ls -alh
- echo "Compile complete."
system-test-gpu-td3: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
tags:
- general-purpose, gpu-enabled
variables:
GIT_STRATEGY: fetch
timeout: 12h 0m
script:
- ./install_tools_and_virtual_environment.sh
- source setup.sh
- echo ${RL_PCB}
- cd ${RL_PCB}/tests/05_training_td3_cuda_fast/
- ./run.sh
artifacts:
paths:
- ./tests/05_training_td3_cuda_fast/work/eval_testing_set/evaluation_report_mean.pdf
- ./tests/05_training_td3_cuda_fast/experiment_report.pdf
system-test-gpu-sac: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
tags:
- general-purpose, gpu-enabled
variables:
GIT_STRATEGY: fetch
timeout: 12h 0m
script:
- ./install_tools_and_virtual_environment.sh
- source setup.sh
- echo ${RL_PCB}
- cd ${RL_PCB}/tests/07_training_sac_cuda_fast/
- ./run.sh
artifacts:
paths:
- ./tests/07_training_sac_cuda_fast/work/eval_testing_set/evaluation_report_mean.pdf
- ./tests/07_training_sac_cuda_fast/experiment_report.pdf
system-test-cpu: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
tags:
- general-purpose, gpu-enabled
variables:
GIT_STRATEGY: fetch
timeout: 12h 0m
script:
- ./install_tools_and_virtual_environment.sh --cpu_only
- source setup.sh
- echo ${RL_PCB}
- cd ${RL_PCB}/tests/06_training_td3_cpu_fast/
- ./run.sh
artifacts:
paths:
- ./tests/06_training_td3_cpu_fast/work/eval_testing_set/evaluation_report_mean.pdf
- ./tests/06_training_td3_cpu_fast/experiment_report.pdf