-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
35 lines (33 loc) · 1.22 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
dependencies:
post:
- bundle exec bundle-audit check --update
checkout:
post:
- cp config/application.yml.example config/application.yml
deployment:
staging:
branch: development
commands:
# Required to fix this error on CircleCI:
#
# "Push rejected, source repository is a shallow clone.
# Unshallow it with `git fetch --all --unshallow` and try pushing again."
- '[[ ! -s "$(git rev-parse --git-dir)/shallow" ]] || git fetch --unshallow'
- git push [email protected]:lockstep-staging-temp.git HEAD:master:
timeout: 300
- heroku run rake db:migrate --app lockstep-staging-temp:
timeout: 300
- heroku restart --app lockstep-staging-temp
production:
branch: master
commands:
# Required to fix this error on CircleCI:
#
# "Push rejected, source repository is a shallow clone.
# Unshallow it with `git fetch --all --unshallow` and try pushing again."
- '[[ ! -s "$(git rev-parse --git-dir)/shallow" ]] || git fetch --unshallow'
- git push [email protected]:lockstep.git HEAD:master:
timeout: 300
- heroku run rake db:migrate --app lockstep:
timeout: 300
- heroku restart --app lockstep