Skip to content

Commit

Permalink
circleci test
Browse files Browse the repository at this point in the history
  • Loading branch information
ovv committed Jul 24, 2019
1 parent e57cd97 commit 290fcc0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ jobs:
working_directory: ~/app
docker:
- image: circleci/python:3.7.3-node-browsers
- image: circleci/postgres:11.4-alpine
environment:
POSTGRES_USER: main
POSTGRES_DB: main
POSTGRES_PASSWORD: main
steps:
- checkout
- restore_cache:
Expand All @@ -24,7 +29,7 @@ jobs:
- .venv
- run: |
source .venv/bin/activate
tox
tox -e ci -e lint
- save_cache:
key: 'tox-{{ checksum "requirements/base.txt" }}-{{ checksum "requirements/testing.txt" }}-{{ checksum "requirements/development.txt" }}-{{ checksum "requirements/production.txt" }}'
paths:
Expand Down
5 changes: 5 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ commands =
black --check .
pylint pyslackersweb
mypy . --ignore-missing-imports

[testenv:ci]
commands =
pip install -r requirements/testing.txt
python -m pytest --verbose --cov=pyslackersweb/ --cov-report=term-missing --junit-xml={envdir}/artifacts/test-results.xml --postgresql

0 comments on commit 290fcc0

Please sign in to comment.