-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
52 lines (50 loc) · 1.68 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
machine:
# post:
# - pyenv global 3.4.3
python:
version: 3.4.3
node:
version: 4.3.1
hosts:
test.firebase.localhost: 127.0.0.1
dev.mycompany.com: 127.0.0.1
app.bu: 127.0.0.1
api.bu: 127.0.0.1
dependencies:
# cache_directories:
# - ~/.pyenv/versions/3.4.3
pre:
# TODO: move this entire thing to use the docker images instead
- rm -rf /home/ubuntu/core/node_modules
- sudo apt-get update; sudo apt-get install google-chrome-stable python2.7
- pip install --upgrade pip
- pip install -r requirements.txt
- npm install -g gulp selenium bower
- bower install
- pyenv local 2.7.9; npm config set python python2.7; npm install
# - npm install
- node_modules/webdriver-manager/bin/webdriver-manager update --standalone
- pyenv local 3.4.3; pyenv global 3.4.3
#- cd api; python manage.py migrate
# - node_modules/webdriver-manager/bin/webdriver-manager start:
# background: true
- cd app; gulp migrate --force
- cd app; gulp build_test
- cd app; gulp blaze
- cd app; gulp deploy_blaze
test:
override:
- cd app; polytester --parallel $CIRCLE_NODE_INDEX $CIRCLE_NODE_TOTAL:
parallel: true
notify:
webhooks:
- url: http://will.buddyup.org/api/circleci/deployed/
deployment:
production:
branch: master
commands:
- git push [email protected]:buddyup-api.git master
- heroku run "cd app/api; python manage.py migrate --settings=envs.live" --app buddyup-api
- cd app; PRODUCTION_BUILD=true gulp push_aws
- cd app; PRODUCTION_BUILD=true gulp purge_cloudflare
- cd app; PRODUCTION_BUILD=true gulp deploy_blaze