Skip to content

Commit 390d387

Browse files
authored
Merge pull request #47 from hungpham2511/develop
Develop
2 parents 207247f + 535989a commit 390d387

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1889
-706
lines changed

.circleci/config.yml

+63-14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,54 @@
11
version: 2
22
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+
352
test-python-3:
453
docker:
554
- image: hungpham2511/toppra-dep:0.0.2
@@ -19,31 +68,32 @@ jobs:
1968
- run:
2069
name: install dependencies
2170
command: |
22-
python3 -m venv venv
23-
. toppra-venv/bin/activate
71+
python3 -m venv venv3
72+
. venv3/bin/activate
2473
# 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
2676
# test deps
27-
pip install cvxpy pytest pytest-cov pandas tabulate
77+
pip install cvxpy cvxopt pytest pytest-cov pandas tabulate pylint pydocstyle pycodestyle
2878
2979
- save_cache:
3080
paths:
31-
- ./toppra-venv
81+
- ./venv3
3282
key: v1-dependencies3-{{ checksum "requirements3.txt" }}
3383

3484
# build install
3585
- run:
3686
name: build and install
3787
command: |
38-
. venv/bin/activate
88+
. venv3/bin/activate
3989
python setup.py develop
4090
4191
- run:
4292
name: test
4393
command: |
44-
. venv/bin/activate
94+
. venv3/bin/activate
4595
export PYTHONPATH=$PYTHONPATH:`openrave-config --python-dir`
46-
pytest -xv
96+
pytest tests -W ignore::PendingDeprecationWarning
4797
4898
- store_artifacts:
4999
path: test-reports
@@ -73,17 +123,15 @@ jobs:
73123
. venv/bin/activate
74124
# main deps
75125
pip install -r requirements.txt
76-
# test deps
77-
pip install cvxpy==0.4.11 cvxopt pytest pytest-cov pandas tabulate
78-
# qpOAses
79126
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
80129
81130
- save_cache:
82131
paths:
83132
- ./venv
84133
key: v1-dependencies2-{{ checksum "requirements.txt" }}
85134

86-
# build install
87135
- run:
88136
name: build and install
89137
command: |
@@ -95,7 +143,7 @@ jobs:
95143
command: |
96144
. venv/bin/activate
97145
export PYTHONPATH=$PYTHONPATH:`openrave-config --python-dir`
98-
pytest tests
146+
pytest tests -W ignore::PendingDeprecationWarning
99147
100148
- store_artifacts:
101149
path: test-reports
@@ -107,4 +155,5 @@ workflows:
107155
test:
108156
jobs:
109157
- test-python-2
110-
# - test-python-3
158+
- test-python-3
159+
- check-codestyle

0 commit comments

Comments
 (0)