Skip to content

Commit

Permalink
Circleci config
Browse files Browse the repository at this point in the history
  • Loading branch information
ovv committed Jul 25, 2019
1 parent 1220395 commit 472fa06
Showing 1 changed file with 26 additions and 13 deletions.
39 changes: 26 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
version: 2

workflows:
version: 2
workflow:
jobs:
- test
- lint
- sentry:
requires:
- test
- lint
filters:
branches:
only: master

jobs:
build:
parallelism: 1
test: &test-template
working_directory: ~/app
docker:
- image: circleci/python:3.7.3-node-browsers
Expand All @@ -12,14 +25,18 @@ jobs:
POSTGRES_USER: main
POSTGRES_DB: main
POSTGRES_PASSWORD: main
environment:
TOXENV: ci
steps:
- checkout
- restore_cache:
keys:
- 'venv-{{ checksum "requirements/base.txt" }}-{{ checksum "requirements/testing.txt" }}-{{ checksum "requirements/development.txt" }}-{{ checksum "requirements/production.txt" }}'
- venv-
- restore_cache:
keys:
- 'tox-{{ checksum "requirements/base.txt" }}-{{ checksum "requirements/testing.txt" }}-{{ checksum "requirements/development.txt" }}-{{ checksum "requirements/production.txt" }}'
- tox-
- run: |
python3 -m venv .venv
source .venv/bin/activate
Expand All @@ -30,14 +47,20 @@ jobs:
- .venv
- run: |
source .venv/bin/activate
tox -e ci -e lint
tox
- save_cache:
key: 'tox-{{ checksum "requirements/base.txt" }}-{{ checksum "requirements/testing.txt" }}-{{ checksum "requirements/development.txt" }}-{{ checksum "requirements/production.txt" }}'
paths:
- .tox
- .mypy_cache
- store_test_results:
path: .tox/py37/artifacts/
lint:
<<: *test-template
docker:
- image: circleci/python:3.7.3
environment:
TOXENV: lint
sentry:
working_directory: ~/app
docker:
Expand All @@ -50,13 +73,3 @@ jobs:
VERSION=$(sentry-cli releases propose-version)
sentry-cli releases new -p website $VERSION
sentry-cli releases set-commits --auto $VERSION
workflows:
version: 2
workflow:
jobs:
- build
- sentry:
filters:
branches:
only: master

0 comments on commit 472fa06

Please sign in to comment.