-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
76 lines (72 loc) · 3.12 KB
/
circle.yml
File metadata and controls
76 lines (72 loc) · 3.12 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
machine:
pre:
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
environment:
LOCALDEV: true
DDSURL: http://0.0.0.0:3001
COMPOSE_FILE: 'docker-compose.circle.yml:docker-compose.swift.yml'
GRAPHSTORY_URL: http://neo4j.db.host:7474
BONSAI_URL: elastic.local:9200
OPENID_CLIENT_ID: test
OPENID_CLIENT_SECRET: testpass
OPENID_URL: http://oit.oauth.edu
hosts:
swift.local: 0.0.0.0
neo4j.db.host: 0.0.0.0
elastic.local: 0.0.0.0
services:
- docker
# Version of ruby to use
ruby:
version:
2.2.2
dependencies:
cache_directories:
- "docker/circle"
pre:
- ./docker/circle/cache_docker_image.sh neo4j 3.0.2
- ./docker/circle/cache_docker_image.sh elasticsearch 2.2.2
# - curl -L https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 > jq; sudo mv jq /usr/bin/jq; sudo chmod +x /usr/bin/jq
- sudo pip install --upgrade docker-compose==1.8.0
- docker-compose up -d neo4j elasticsearch
deployment:
development:
branch: develop
commands:
- heroku maintenance:on --app 'dukeds-dev'
# - heroku run --exit-code rake assets:clobber --app 'dukeds-dev'
- "[[ ! -s \"$(git rev-parse --git-dir)/shallow\" ]] || git fetch --unshallow"
- git push git@heroku.com:dukeds-dev.git $CIRCLE_SHA1:refs/heads/master:
timeout: 54000
- heroku run rake --exit-code db:migrate --app 'dukeds-dev'
- heroku run rake --exit-code db:seed --app 'dukeds-dev'
- heroku run --exit-code rake db:data:migrate --app 'dukeds-dev'
- heroku run --exit-code rake auth_service:set_default --app 'dukeds-dev'
- heroku run --exit-code rake elasticsearch:index:rebuild --app 'dukeds-dev'
- heroku maintenance:off --app 'dukeds-dev'
ua_test:
branch: ua_test
commands:
- heroku maintenance:on --app 'dukeds-uatest'
# - heroku run --exit-code rake assets:clobber --app 'dukeds-uatest'
- "[[ ! -s \"$(git rev-parse --git-dir)/shallow\" ]] || git fetch --unshallow"
- git push git@heroku.com:dukeds-uatest.git $CIRCLE_SHA1:refs/heads/master:
timeout: 54000
- heroku run --exit-code rake db:migrate --app 'dukeds-uatest'
- heroku run --exit-code rake db:seed --app 'dukeds-uatest'
- heroku run --exit-code rake db:data:migrate --app 'dukeds-uatest'
- heroku run --exit-code rake auth_service:set_default --app 'dukeds-uatest'
- heroku run --exit-code rake elasticsearch:index:rebuild --app 'dukeds-uatest'
- heroku maintenance:off --app 'dukeds-uatest'
production:
branch: production
commands:
# - heroku run --exit-code rake assets:clobber --app 'dukeds'
- "[[ ! -s \"$(git rev-parse --git-dir)/shallow\" ]] || git fetch --unshallow"
- git push git@heroku.com:dukeds.git $CIRCLE_SHA1:refs/heads/master:
timeout: 54000
- heroku run --exit-code rake db:migrate --app 'dukeds'
- heroku run --exit-code rake db:seed --app 'dukeds'
- heroku run --exit-code rake db:data:migrate --app 'dukeds'
- heroku run --exit-code rake auth_service:set_default --app 'dukeds'
- heroku run --exit-code rake elasticsearch:index:rebuild --app 'dukeds'