forked from code-corps/code-corps-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
42 lines (40 loc) · 1.23 KB
/
circle.yml
File metadata and controls
42 lines (40 loc) · 1.23 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
machine:
environment:
PATH: "$HOME/.asdf/bin:$HOME/.asdf/shims:$PATH"
dependencies:
cache_directories:
- ~/.asdf
- deps
- _build
pre:
- ./bin/circle_pre_build.sh
- mix deps.compile
- mix compile
test:
override:
- |
if [ ${CIRCLE_PR_USERNAME} ]; then
MIX_ENV=test mix test;
else
MIX_ENV=test mix coveralls.circle --include acceptance:true;
fi
post:
- mix inch.report
deployment:
staging:
branch: develop
commands:
- git push git@heroku.com:code-corps-remote-development.git $CIRCLE_SHA1:master
- heroku run "POOL_SIZE=2 mix ecto.migrate" --app code-corps-remote-development
- git push git@heroku.com:code-corps-staging.git $CIRCLE_SHA1:master
- heroku run "POOL_SIZE=2 mix ecto.migrate" --app code-corps-staging
- gem install apiaryio
- apiary publish --api-name="codecorpsapidevelop" --path ./blueprint/api.apib
- ./bin/deploy_docs.sh
production:
branch: master
commands:
- git push git@heroku.com:code-corps.git $CIRCLE_SHA1:master
- heroku run "POOL_SIZE=2 mix ecto.migrate" --app code-corps
- gem install apiaryio
- apiary publish --api-name="codecorpsapi" --path ./blueprint/api.apib