forked from coreinfrastructure/best-practices-badge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
37 lines (37 loc) · 1.39 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
dependencies:
pre:
- rvm install rubygems current # 2.4.8 --force
- gem install bundler -v 1.14.3
test:
pre:
- "[[ ! -s \"$(git rev-parse --git-dir)/shallow\" ]] || git fetch --unshallow"
- sudo curl --output /usr/local/bin/phantomjs https://s3.amazonaws.com/circle-downloads/phantomjs-2.1.1
post:
- bundle exec pronto run -f github text -c=$(git log --pretty=format:%H | tail -1) --exit-code
- bundle exec rake ci
deployment:
master:
branch: master
commands:
- git push [email protected]:master-bestpractices.git $CIRCLE_SHA1:refs/heads/master
- heroku run rake db:migrate --app master-bestpractices:
timeout: 400 # if your deploys take a long time
- "sleep 5 && bundle exec rake fastly:test" # Is Fastly CDN working?
staging:
branch: staging
commands:
- git push [email protected]:staging-bestpractices.git $CIRCLE_SHA1:refs/heads/master
- heroku run rake db:migrate --app staging-bestpractices:
timeout: 400 # if your deploys take a long time
production:
branch: production
commands:
- git push [email protected]:production-bestpractices.git $CIRCLE_SHA1:refs/heads/master
- heroku run rake db:migrate --app production-bestpractices:
timeout: 400 # if your deploys take a long time
general:
artifacts:
- 'coverage'
- 'license_finder_report.html'
- 'log/test.log'
- 'tmp/capybara'