1
1
version : 2
2
2
jobs :
3
+ check-codestyle :
4
+ docker :
5
+ - image : hungpham2511/toppra-dep:0.0.2
6
+
7
+ working_directory : ~/repo
8
+
9
+ steps :
10
+ - checkout
11
+
12
+ # Download and cache dependencies
13
+ - restore_cache :
14
+ keys :
15
+ - v1-dependencies3-{{ checksum "requirements3.txt" }}
16
+ # fallback to using the latest cache if no exact match is found
17
+ - v1-dependencies3-
18
+
19
+ - run :
20
+ name : install dependencies
21
+ command : |
22
+ python3 -m venv venv3
23
+ . venv3/bin/activate
24
+ # main deps
25
+ pip install -r requirements3.txt
26
+ git clone https://github.com/hungpham2511/qpOASES && cd qpOASES/ && mkdir bin && make && cd interfaces/python/ && python setup.py install
27
+ # test deps
28
+ pip install cvxpy cvxopt pytest pytest-cov pandas tabulate pylint pydocstyle pycodestyle
29
+
30
+ - save_cache :
31
+ paths :
32
+ - ./venv3
33
+ key : v1-dependencies3-{{ checksum "requirements3.txt" }}
34
+
35
+ # build install
36
+ - run :
37
+ name : build and install
38
+ command : |
39
+ . venv3/bin/activate
40
+ python setup.py develop
41
+
42
+ - run :
43
+ name : check codestyle
44
+ command : |
45
+ . venv3/bin/activate
46
+ make lint
47
+
48
+ - store_artifacts :
49
+ path : test-reports
50
+ destination : test-reports
51
+
3
52
test-python-3 :
4
53
docker :
5
54
- image : hungpham2511/toppra-dep:0.0.2
@@ -19,31 +68,32 @@ jobs:
19
68
- run :
20
69
name : install dependencies
21
70
command : |
22
- python3 -m venv venv
23
- . toppra-venv /bin/activate
71
+ python3 -m venv venv3
72
+ . venv3 /bin/activate
24
73
# main deps
25
- pip install -q -r requirements3.txt
74
+ pip install -r requirements3.txt
75
+ git clone https://github.com/hungpham2511/qpOASES && cd qpOASES/ && mkdir bin && make && cd interfaces/python/ && python setup.py install
26
76
# test deps
27
- pip install cvxpy pytest pytest-cov pandas tabulate
77
+ pip install cvxpy cvxopt pytest pytest-cov pandas tabulate pylint pydocstyle pycodestyle
28
78
29
79
- save_cache :
30
80
paths :
31
- - ./toppra-venv
81
+ - ./venv3
32
82
key : v1-dependencies3-{{ checksum "requirements3.txt" }}
33
83
34
84
# build install
35
85
- run :
36
86
name : build and install
37
87
command : |
38
- . venv /bin/activate
88
+ . venv3 /bin/activate
39
89
python setup.py develop
40
90
41
91
- run :
42
92
name : test
43
93
command : |
44
- . venv /bin/activate
94
+ . venv3 /bin/activate
45
95
export PYTHONPATH=$PYTHONPATH:`openrave-config --python-dir`
46
- pytest -xv
96
+ pytest tests -W ignore::PendingDeprecationWarning
47
97
48
98
- store_artifacts :
49
99
path : test-reports
@@ -73,17 +123,15 @@ jobs:
73
123
. venv/bin/activate
74
124
# main deps
75
125
pip install -r requirements.txt
76
- # test deps
77
- pip install cvxpy==0.4.11 cvxopt pytest pytest-cov pandas tabulate
78
- # qpOAses
79
126
git clone https://github.com/hungpham2511/qpOASES && cd qpOASES/ && mkdir bin && make && cd interfaces/python/ && python setup.py install
127
+ # test deps
128
+ pip install cvxpy==0.4.11 cvxopt pytest pytest-cov pandas tabulate pylint pydocstyle pycodestyle pathlib2
80
129
81
130
- save_cache :
82
131
paths :
83
132
- ./venv
84
133
key : v1-dependencies2-{{ checksum "requirements.txt" }}
85
134
86
- # build install
87
135
- run :
88
136
name : build and install
89
137
command : |
95
143
command : |
96
144
. venv/bin/activate
97
145
export PYTHONPATH=$PYTHONPATH:`openrave-config --python-dir`
98
- pytest tests
146
+ pytest tests -W ignore::PendingDeprecationWarning
99
147
100
148
- store_artifacts :
101
149
path : test-reports
@@ -107,4 +155,5 @@ workflows:
107
155
test :
108
156
jobs :
109
157
- test-python-2
110
- # - test-python-3
158
+ - test-python-3
159
+ - check-codestyle
0 commit comments