Skip to content

Commit

Permalink
chore: update ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
pik694 committed Oct 20, 2019
1 parent 051bc23 commit 517fe8f
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,27 @@ commands:
setup_python_env:
steps:
- checkout
- run:
name: Change dependencies directories ownership
command: |
sudo chown -R circleci:circleci /usr/local/bin /usr/local/lib /usr/local/lib/python3.7/site-packages
- restore_cache:
keys:
- dependencies_v2_{{ checksum "plasma_framework/python_tests/requirements.txt" }}
- run:
name: Prepare environment
command: |
sudo chown -R circleci:circleci /usr/local/bin /usr/local/lib/python3.7/site-packages
sudo apt update && sudo apt install nodejs npm
sudo npm install -g n && sudo n stable
sudo npm install -g ganache-cli
- restore_cache:
keys:
- dependencies_v1_{{ checksum "requirements.txt" }}
- run:
name: Install dependencies
working_directory: ~/repo/plasma_framework/python_tests
command: |
pip install -r requirements.txt
make init dev
python -m solcx.install v0.5.11
- save_cache:
key: dependencies-{{ checksum "requirements.txt" }}
key: dependencies_v2_{{ checksum "plasma_framework/python_tests/requirements.txt" }}
paths:
- /usr/local/bin
- /usr/local/lib/python3.7/site-packages
Expand Down Expand Up @@ -113,6 +117,7 @@ jobs:
- setup_python_env
- run:
name: Run tests
working_directory: ~/repo/plasma_framework/python_tests
command: make test

Python linter:
Expand All @@ -122,6 +127,7 @@ jobs:
- setup_python_env
- run:
name: Run linter
working_directory: ~/repo/plasma_framework/python_tests
command: make lint

Python long running tests:
Expand All @@ -131,6 +137,7 @@ jobs:
- setup_python_env
- run:
name: Run slow tests
working_directory: ~/repo/plasma_framework/python_tests
no_output_timeout: 10h
command: make runslow

Expand Down

0 comments on commit 517fe8f

Please sign in to comment.