Skip to content

Commit

Permalink
Merge pull request #47 from hungpham2511/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
hungpham2511 authored Apr 27, 2019
2 parents 207247f + 535989a commit 390d387
Show file tree
Hide file tree
Showing 61 changed files with 1,889 additions and 706 deletions.
77 changes: 63 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,54 @@
version: 2
jobs:
check-codestyle:
docker:
- image: hungpham2511/toppra-dep:0.0.2

working_directory: ~/repo

steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies3-{{ checksum "requirements3.txt" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies3-

- run:
name: install dependencies
command: |
python3 -m venv venv3
. venv3/bin/activate
# main deps
pip install -r requirements3.txt
git clone https://github.com/hungpham2511/qpOASES && cd qpOASES/ && mkdir bin && make && cd interfaces/python/ && python setup.py install
# test deps
pip install cvxpy cvxopt pytest pytest-cov pandas tabulate pylint pydocstyle pycodestyle
- save_cache:
paths:
- ./venv3
key: v1-dependencies3-{{ checksum "requirements3.txt" }}

# build install
- run:
name: build and install
command: |
. venv3/bin/activate
python setup.py develop
- run:
name: check codestyle
command: |
. venv3/bin/activate
make lint
- store_artifacts:
path: test-reports
destination: test-reports

test-python-3:
docker:
- image: hungpham2511/toppra-dep:0.0.2
Expand All @@ -19,31 +68,32 @@ jobs:
- run:
name: install dependencies
command: |
python3 -m venv venv
. toppra-venv/bin/activate
python3 -m venv venv3
. venv3/bin/activate
# main deps
pip install -q -r requirements3.txt
pip install -r requirements3.txt
git clone https://github.com/hungpham2511/qpOASES && cd qpOASES/ && mkdir bin && make && cd interfaces/python/ && python setup.py install
# test deps
pip install cvxpy pytest pytest-cov pandas tabulate
pip install cvxpy cvxopt pytest pytest-cov pandas tabulate pylint pydocstyle pycodestyle
- save_cache:
paths:
- ./toppra-venv
- ./venv3
key: v1-dependencies3-{{ checksum "requirements3.txt" }}

# build install
- run:
name: build and install
command: |
. venv/bin/activate
. venv3/bin/activate
python setup.py develop
- run:
name: test
command: |
. venv/bin/activate
. venv3/bin/activate
export PYTHONPATH=$PYTHONPATH:`openrave-config --python-dir`
pytest -xv
pytest tests -W ignore::PendingDeprecationWarning
- store_artifacts:
path: test-reports
Expand Down Expand Up @@ -73,17 +123,15 @@ jobs:
. venv/bin/activate
# main deps
pip install -r requirements.txt
# test deps
pip install cvxpy==0.4.11 cvxopt pytest pytest-cov pandas tabulate
# qpOAses
git clone https://github.com/hungpham2511/qpOASES && cd qpOASES/ && mkdir bin && make && cd interfaces/python/ && python setup.py install
# test deps
pip install cvxpy==0.4.11 cvxopt pytest pytest-cov pandas tabulate pylint pydocstyle pycodestyle pathlib2
- save_cache:
paths:
- ./venv
key: v1-dependencies2-{{ checksum "requirements.txt" }}

# build install
- run:
name: build and install
command: |
Expand All @@ -95,7 +143,7 @@ jobs:
command: |
. venv/bin/activate
export PYTHONPATH=$PYTHONPATH:`openrave-config --python-dir`
pytest tests
pytest tests -W ignore::PendingDeprecationWarning
- store_artifacts:
path: test-reports
Expand All @@ -107,4 +155,5 @@ workflows:
test:
jobs:
- test-python-2
# - test-python-3
- test-python-3
- check-codestyle
Loading

0 comments on commit 390d387

Please sign in to comment.