forked from metalibm/metalibm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
81 lines (70 loc) · 2.65 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
image: registry.gitlab.com/nibrunie/metalibm:metalibm_ci
before_script:
soft_unit_tests:
script:
- export PATH=/app/local/bin:$PATH
- export LD_LIBRARY_PATH=/app/local/lib/
- export PYTHONPATH=/app/local/python/lib/python
- PYTHONPATH=$PWD:$PYTHONPATH ML_SRC_DIR=$PWD python2.7 valid/soft_unit_test.py --debug
rtl_unit_tests:
script:
- export PATH=/app/local/bin:$PATH
- export LD_LIBRARY_PATH=/app/local/lib/
- export PYTHONPATH=/app/local/python/lib/python
- PYTHONPATH=$PWD:$PYTHONPATH ML_SRC_DIR=$PWD python2.7 valid/rtl_unit_test.py --debug
non_regression:
script:
- export PATH=/app/local/bin:$PATH
- export LD_LIBRARY_PATH=/app/local/lib/
- export PYTHONPATH=/app/local/python/lib/python
- PYTHONPATH=$PWD:$PYTHONPATH ML_SRC_DIR=$PWD python2.7 valid/non_regression.py --debug
rtl_regression:
script:
- export PATH=/app/local/bin:$PATH
- export LD_LIBRARY_PATH=/app/local/lib/
- export PYTHONPATH=/app/local/python/lib/python
- PYTHONPATH=$PWD:$PYTHONPATH ML_SRC_DIR=$PWD python2.7 valid/hw_non_regression.py --debug
soft_unit_tests_py3:
script:
- export PATH=/app/local/bin:$PATH
- export LD_LIBRARY_PATH=/app/local/lib/
- export PYTHONPATH=/app/local/lib/python3.4/site-packages/
- PYTHONPATH=$PWD:$PYTHONPATH ML_SRC_DIR=$PWD python3 valid/soft_unit_test.py --debug
rtl_unit_tests_py3:
script:
- export PATH=/app/local/bin:$PATH
- export LD_LIBRARY_PATH=/app/local/lib/
- export PYTHONPATH=/app/local/lib/python3.4/site-packages/
- PYTHONPATH=$PWD:$PYTHONPATH ML_SRC_DIR=$PWD python3 valid/rtl_unit_test.py --debug
non_regression_py3:
script:
- export PATH=/app/local/bin:$PATH
- export LD_LIBRARY_PATH=/app/local/lib/
- export PYTHONPATH=/app/local/lib/python3.4/site-packages/
- PYTHONPATH=$PWD:$PYTHONPATH ML_SRC_DIR=$PWD python3 valid/non_regression.py --debug
rtl_regression_py3:
script:
- export PATH=/app/local/bin:$PATH
- export LD_LIBRARY_PATH=/app/local/lib/
- export PYTHONPATH=/app/local/lib/python3.4/site-packages/
- PYTHONPATH=$PWD:$PYTHONPATH ML_SRC_DIR=$PWD python3 valid/hw_non_regression.py --debug
lint:
stage: test
allow_failure: true
script:
- pylint metalibm_core/
pages:
stage: deploy
only:
refs:
- master
script:
- export PATH=/app/local/bin:$PATH
- export LD_LIBRARY_PATH=/app/local/lib/
- export PYTHONPATH=/app/local/python/lib/python
- mkdir -p public
- PYTHONPATH=$PWD:$PYTHONPATH ML_SRC_DIR=$PWD python2 valid/soft_coverage_test.py --report-only --output public/report.${CI_COMMIT_REF_NAME}.html
artifacts:
paths:
- public/
expire_in: 1 week