forked from BRCAChallenge/brca-exchange
-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
29 lines (28 loc) · 1019 Bytes
/
circle.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
general:
build_dir: website
machine:
services:
- postgresql
node:
version: 4.4.4
database:
override:
- sudo -u postgres createdb storage.pg
test:
override:
- npm run lint -- -f junit -o $CIRCLE_TEST_REPORTS/lint-results.xml
- npm run test -- -R xunit --reporter-options output=$CIRCLE_TEST_REPORTS/test-results.xml
- cd django/ && python manage.py migrate
- cd ../pipeline/data && bash ./getdata
- cd .. && pip install -r test-requirements.txt && pytest --junitxml=${CIRCLE_TEST_REPORTS}/pytest-results.xml
deployment:
dev:
branch: master
commands:
- ../deployment/deploy-dev:
timeout: 1500 # fail if it takes over 25 minutes (some migrations take a while)
beta:
tag: /v[0-9]+(\.[0-9]+)*/
commands:
- HOST=brcaexchange.cloudapp.net ../deployment/deploy-dev:
timeout: 1500 # fail if it takes over 25 minutes (some migrations take a while)