Files
stacks-puppet-node/circle.yml
2018-04-20 15:47:14 -04:00

30 lines
1.0 KiB
YAML

version: 2
jobs:
build:
working_directory: ~/blockstack
docker:
- image: circleci/python:2.7
environment:
PIPENV_VENV_IN_PROJECT: true
steps:
- checkout
- restore_cache:
key: deps9-{{ .Branch }}-{{ checksum "setup.py" }}-{{ checksum "integration_tests/setup.py" }}
- run:
command: |
python -m virtualenv venv
source venv/bin/activate
pip install ./integration_tests --upgrade --upgrade-strategy only-if-needed
pip install . --upgrade --upgrade-strategy only-if-needed
- save_cache:
key: deps9-{{ .Branch }}-{{ checksum "setup.py" }}-{{ checksum "integration_tests/setup.py" }}
paths:
- "venv"
- run:
command: |
source venv/bin/activate
blockstack setup -y --password PASSWORD
blockstack api start -y --password PASSWORD
python -m blockstack_integration_tests.live_tests.api_tests
blockstack api stop -y