forked from SumOfUs/Champaign
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
48 lines (42 loc) · 1.58 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
machine:
node:
version: 8.1.0
environment:
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
services:
- docker
- redis
- postgresql
dependencies:
cache_directories:
- ~/.cache/yarn
override:
- yarn
- bundle check || bundle install --without development --jobs=4 --retry=3
- cat Dockerrun.aws.json.template | envsubst > Dockerrun.aws.json
- RAILS_ENV=production bundle exec rake assets:download_external_assets[$EXTERNAL_ASSET_PATHS,$CUSTOM_ASSETS_URL,$CUSTOM_ASSETS_CREDENTIALS,$CIRCLE_BRANCH]
database:
override:
- bundle exec rake RAILS_ENV=test db:create db:migrate db:seed champaign:seed_liquid
test:
override:
- |
yarn run flow check &&
yarn run test &&
bundle exec rspec spec
deployment:
production:
branch: 'master'
commands:
- BRAINTREE_TOKEN_URL=$PRODUCTION_BRAINTREE_TOKEN_URL ./bin/build.sh
- ./bin/deploy.sh $CIRCLE_SHA1 'champaign' 'env-production-1' 'champaign-assets-production' 'logs3.papertrailapp.com:44107' 'actions.sumofus.org'
staging:
branch: 'email-target'
commands:
- BRAINTREE_TOKEN_URL=$STAGING_BRAINTREE_TOKEN_URL ./bin/build.sh
- ./bin/deploy.sh $CIRCLE_SHA1 'champaign' 'env-staging' 'champaign-assets-staging' 'logs3.papertrailapp.com:34848' 'action-staging.sumofus.org'
staging:
branch: 'testing'
commands:
- BRAINTREE_TOKEN_URL=$STAGING_BRAINTREE_TOKEN_URL ./bin/build.sh
- ./bin/deploy.sh $CIRCLE_SHA1 'champaign' 'env-feature' 'champaign-assets-testing' 'logs3.papertrailapp.com:34848' 'testing.sumofus.org'