forked from OpenTreeMap/otm-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
35 lines (31 loc) · 1.15 KB
/
circle.yml
File metadata and controls
35 lines (31 loc) · 1.15 KB
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
33
34
35
machine:
environment:
DJANGO_SETTINGS_MODULE: opentreemap.settings
node:
version: 0.12.15
dependencies:
pre:
- pip install -r travis-requirements.txt
checkout:
post:
- cp ci/local_settings.py opentreemap/opentreemap/settings/local_settings.py
- mkdir -p /tmp/otm/static
- mkdir -p /tmp/otm/media
database:
post:
- psql -c "CREATE EXTENSION hstore;" -U postgres -d template1
- psql -c "CREATE DATABASE ci;" -U postgres
- psql -c "CREATE EXTENSION postgis;" -U postgres -d ci
- python opentreemap/manage.py migrate --noinput
- python opentreemap/manage.py collectstatic_js_reverse
- npm run build
- python opentreemap/manage.py collectstatic --noinput
test:
override:
- flake8 --exclude migrations,opentreemap/settings/local_settings.py,*.pyc opentreemap
- npm run check
- npm run test
- cd opentreemap && case $CIRCLE_NODE_INDEX in 0) coverage run --source=. --rcfile=../.coveragerc manage.py test ;; 1) coverage run --source=. --rcfile=../.coveragerc manage.py test -p 'uitest*.py' ;; esac:
parallel: true
post:
- cd opentreemap && coverage html -d $CIRCLE_ARTIFACTS/python-coverage