-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
48 lines (45 loc) · 1.66 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
dependencies:
post:
- bundle exec bundle-audit check --update
checkout:
post:
- cp config/application.yml.example config/application.yml
test:
override:
- |
bundle exec rspec --format progress \
--format RspecJunitFormatter \
-o $CIRCLE_TEST_REPORTS/rspec.xml
# deployment:
# staging:
# branch: development
# commands:
# # Use this if you want to backup the DB before deployments
# - heroku pg:backups capture --app <APPNAME>
# # 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]:<APPNAME>.git HEAD:master:
# timeout: 300
# - heroku run rake db:migrate --app <APPNAME>:
# timeout: 300
# - heroku restart --app <APPNAME>:
# timeout: 300
# production:
# branch: master
# commands:
# # Use this if you want to backup the DB before deployments
# - heroku pg:backups capture --app <APPNAME>
# # 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]:<APPNAME>.git HEAD:master:
# timeout: 300
# - heroku run rake db:migrate --app <APPNAME>:
# timeout: 300
# - heroku restart --app <APPNAME>:
# timeout: 300