/
config.yml
32 lines (26 loc) · 1021 Bytes
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: 2
jobs:
build:
docker:
- image: mpasternak79/circleci-python:3.7-node-browsers-nginx-http-push
environment:
PGUSER: postgres
PGHOST: localhost
PGPORT: 5432
PGDATABASE: bpp
DJANGO_BPP_SECRET_KEY: foobar
DJANGO_SETTINGS_MODULE: django_bpp.settings.test
- image: mpasternak79/circleci-postgres:12
- image: rabbitmq:latest
steps:
- checkout
- run: sudo npm install -g grunt-cli
- run: sudo pipenv install --system -d
- run: make assets
# Uruchamiaj na lokalnym firefoxie używając jednego CPU
- run: pytest -n 2 --cov=src --splinter-webdriver=firefox --nginx-host=localhost --liveserver=localhost -m "not serial"
- run: pytest -n 0 --splinter-webdriver=firefox --nginx-host=localhost --liveserver=localhost -m "serial"
# Testy JavaScript
- run: make js-tests
# Wyślij statystyki pokrycia kodu testami do coveralls.io
- run: coveralls