-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
31 lines (31 loc) · 1.45 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
machine:
ruby:
version: 2.1.2
deployment:
production:
branch: master
commands:
- heroku maintenance:on --app myflix-antoineleclercq
- heroku pg:backups capture --app myflix-antoineleclercq
- git push [email protected]:myflix-antoineleclercq.git $CIRCLE_SHA1:refs/heads/master
- heroku run rake db:migrate --app myflix-antoineleclercq
- heroku maintenance:off --app myflix-antoineleclercq
staging:
branch: staging
commands:
- heroku maintenance:on --app myflix-staging-antoineleclercq
- git push [email protected]:myflix-staging-antoineleclercq.git $CIRCLE_SHA1:refs/heads/master
- heroku run rake db:migrate --app myflix-staging-antoineleclercq
- heroku maintenance:off --app myflix-staging-antoineleclercq
dependencies:
pre:
- curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome.deb
- sudo sed -i 's|HERE/chrome\"|HERE/chrome\" --disable-setuid-sandbox|g' /opt/google/chrome/google-chrome
- rm google-chrome.deb
post:
- wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.4.3/elasticsearch-2.4.3.tar.gz
- tar -xvf elasticsearch-2.4.3.tar.gz
- elasticsearch-2.4.3/bin/elasticsearch: {background: true}
# Make sure that Elasticsearch is up before running tests:
- sleep 10 && wget --waitretry=5 --retry-connrefused -v http://127.0.0.1:9200/