forked from TUMFTM/velocity_optimization
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
89 lines (80 loc) · 2.46 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
83
84
85
86
87
88
89
before_script:
- rm -rf "*-env"; virtualenv -p python3 ${CI_JOB_ID}-env
- ${CI_JOB_ID}-env/bin/pip3 install -r requirements.txt
after_script:
- 'killall --user $USER'
- rm -rf ${CI_JOB_ID}-env
stages:
- style_guide_checks
- sqp_performance_check
- pypi_deploy_internal
- tpc_checks
- pypi_deploy_external
Flake8Checks:
stage: style_guide_checks
tags:
- CI_TrackPerformanceLRZ
script:
- ${CI_JOB_ID}-env/bin/flake8
allow_failure: true
VectorMatrixCheck:
stage: sqp_performance_check
tags:
- CI_TrackPerformanceLRZ
script:
- "sed -i '/b_sparse_matrix_fill=/c\ b_sparse_matrix_fill=1' velocity_optimization/params/sqp_config.ini"
- ${CI_JOB_ID}-env/bin/python3 CI/vecmat_test_vp_qp.py
allow_failure: false
SQPPerformanceCheck:
stage: sqp_performance_check
tags:
- CI_TrackPerformanceLRZ
script:
- "sed -i '/b_sparse_matrix_fill=/c\ b_sparse_matrix_fill=1' velocity_optimization/params/sqp_config.ini"
- ${CI_JOB_ID}-env/bin/python3 velocity_optimization/main_vp_sqp.py
timeout: 15m
allow_failure: false
DeployInternal:
stage: pypi_deploy_internal
tags:
- CI_TrackPerformanceLRZ
script:
- ${CI_JOB_ID}-env/bin/python3 -m pip install --upgrade setuptools wheel
- ${CI_JOB_ID}-env/bin/python3 setup.py sdist bdist_wheel
- ${CI_JOB_ID}-env/bin/pip3 install --upgrade twine
- ${CI_JOB_ID}-env/bin/python3 -m twine upload --repository-url ${PYPI_SERVER} --username ${PYPI_USER} --password ${PYPI_PASSWORD} dist/*
allow_failure: false
TPCChecks:
stage: tpc_checks
trigger:
project: roborace/modules/mod_local_trajectory
branch: develop
strategy: depend
DeployExternal:
stage: pypi_deploy_external
tags:
- CI_TrackPerformanceLRZ
only:
- master
script:
- ${CI_JOB_ID}-env/bin/python3 -m pip install --upgrade setuptools wheel
- ${CI_JOB_ID}-env/bin/python3 setup.py sdist bdist_wheel
- ${CI_JOB_ID}-env/bin/pip3 install --upgrade twine
- ${CI_JOB_ID}-env/bin/python3 -m twine upload --username ${PYPI_USER_HERRMANN} --password ${PYPI_TOKEN_HERRMANN} dist/*
allow_failure: false
pages:
stage: pypi_deploy_external
tags:
- CI_TrackPerformanceLRZ
only:
- master
script:
- ${CI_JOB_ID}-env/bin/sphinx-apidoc -f -o ./docs/source velocity_optimization
- ${CI_JOB_ID}-env/bin/sphinx-build -b html docs/source docs/build
- mkdir public
- cp -r docs/build/* public
artifacts:
when: always
paths:
- public
allow_failure: false