-
Notifications
You must be signed in to change notification settings - Fork 52
/
.gitlab-ci.yml
129 lines (125 loc) · 3.17 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
linux_python3_7:
tags:
- linux
only:
- develop
image: matteoragni/clothoids.build.antemotion.com:latest
before_script:
- apt install -y --no-install-recommends --no-install-suggests python3-pytest
script:
- |
cd src_py
mkdir build
cd build
cmake -DPYTHON_EXECUTABLE:FILEPATH=$PYTHON_BIN ..
make
$PYTHON_BIN -m pytest --junitxml=$TEST_REPORT $CI_PROJECT_DIR/src_py/test
cp $PRODUCT_NAME $CI_PROJECT_DIR
artifacts:
paths:
- $PRODUCT_NAME
reports:
junit: $TEST_REPORT
variables:
GIT_SUBMODULE_STRATEGY: recursive
PYTHON_BIN: /usr/bin/python3.7
PRODUCT_NAME: G2lib.cpython-37m-x86_64-linux-gnu.so
TEST_REPORT: $CI_PROJECT_DIR/test_report.xml
linux_python3_6:
tags:
- linux
only:
- develop
image: matteoragni/clothoids.build.antemotion.com:latest
before_script:
- apt install -y --no-install-recommends --no-install-suggests python3-pytest
script:
- |
cd src_py
mkdir build
cd build
cmake -DPYTHON_EXECUTABLE:FILEPATH=$PYTHON_BIN ..
make
$PYTHON_BIN -m pytest --junitxml=$TEST_REPORT $CI_PROJECT_DIR/src_py/test
cp $PRODUCT_NAME $CI_PROJECT_DIR
artifacts:
paths:
- $PRODUCT_NAME
reports:
junit: $TEST_REPORT
variables:
GIT_SUBMODULE_STRATEGY: recursive
PYTHON_BIN: /usr/bin/python3.6
PRODUCT_NAME: G2lib.cpython-36m-x86_64-linux-gnu.so
TEST_REPORT: $CI_PROJECT_DIR/test_report.xml
linux_python2_7:
tags:
- linux
only:
- develop
image: matteoragni/clothoids.build.antemotion.com:latest
before_script:
- apt install -y --no-install-recommends --no-install-suggests python-pytest
script:
- |
cd src_py
mkdir build
cd build
cmake -DPYTHON_EXECUTABLE:FILEPATH=$PYTHON_BIN ..
make
$PYTHON_BIN -m pytest --junitxml=$TEST_REPORT $CI_PROJECT_DIR/src_py/test
cp $PRODUCT_NAME $CI_PROJECT_DIR
artifacts:
paths:
- $PRODUCT_NAME
reports:
junit: $TEST_REPORT
variables:
GIT_SUBMODULE_STRATEGY: recursive
PYTHON_BIN: /usr/bin/python2.7
PRODUCT_NAME: G2lib.so
TEST_REPORT: $CI_PROJECT_DIR/test_report.xml
windows_python3_7:
tags:
- win
only:
- develop
script:
- |
cd src_py
mkdir build
cd build
cmake -DPYTHON_EXECUTABLE:FILEPATH=$PYTHON_BIN -A x64 ..
cmake --build . --config Release
py.exe -3 -m pytest --junitxml=$TEST_REPORT $CI_PROJECT_DIR/src_py/test
cp Release/$PRODUCT_NAME $CI_PROJECT_DIR
artifacts:
paths:
- $PRODUCT_NAME
variables:
GIT_SUBMODULE_STRATEGY: recursive
PYTHON_BIN: C:\Python37\python.exe
PRODUCT_NAME: G2lib.cp37-win_amd64.pyd
TEST_REPORT: $CI_PROJECT_DIR/test_report.xml
windows_python2_7:
tags:
- win
only:
- develop
script:
- |
cd src_py
mkdir build
cd build
cmake -DPYTHON_EXECUTABLE:FILEPATH=$PYTHON_BIN -A x64 ..
cmake --build . --config Release
py.exe -2 -m pytest --junitxml=$TEST_REPORT $CI_PROJECT_DIR/src_py/test
cp Release/$PRODUCT_NAME $CI_PROJECT_DIR
artifacts:
paths:
- $PRODUCT_NAME
variables:
GIT_SUBMODULE_STRATEGY: recursive
PYTHON_BIN: C:\Python27\python.exe
PRODUCT_NAME: G2lib.pyd
TEST_REPORT: $CI_PROJECT_DIR/test_report.xml