forked from winsleague/winsleague
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
57 lines (48 loc) · 1.87 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
49
50
51
52
53
54
55
56
57
machine:
node:
version: 5.2.0
general:
artifacts:
- "app/.meteor/local/log"
- "log"
- "app/report.json" # from meteor_coverage's out_coverage
- "app/lcov.info"
dependencies:
cache_directories:
- "~/.npm"
- "~/.meteor"
- "app/node_modules"
- "app/.meteor/local/build"
- "app/.meteor/local/bundler-cache"
- "app/.meteor/local/isopacks"
- "app/.meteor/local/plugin-cache"
- "/home/ubuntu/nvm/versions/node/v5.2.0/bin"
- "/home/ubuntu/nvm/versions/node/v5.2.0/lib/node_modules"
override:
- (cd app; ./.testing/upgrade_chrome_version.sh)
- (cd app; ./.testing/cache_meteor.sh)
- (cd app; ./.testing/cache_npm_dependencies.sh)
- (cd app; ./.testing/cache_build_and_dependencies.sh):
timeout: 1200
checkout:
post:
- git submodule update --init
test:
override:
- case $CIRCLE_NODE_INDEX in 0) (cd app; ./.testing/unit_and_full_app_run.sh) ;; 1) (cd app; ./.testing/install_chimp.sh; ./tests/acceptance_run) ;; esac:
parallel: true
deployment:
production:
branch: master
commands:
# Publish code coverage data to CodeClimate (only works on master branch).
# $CODECLIMATE_REPO_TOKEN is an environment variable setup in CircleCI.
# - npm install -g [email protected]
# - (cd app; CODECLIMATE_REPO_TOKEN=$CODECLIMATE_REPO_TOKEN codeclimate-test-reporter < lcov.info)
# Decrypt Meteor Up config
- (cd .deploy/production; gpg --no-use-agent --quiet --passphrase $MUP_PASSPHRASE -o mup.js -d mup.js.gpg)
# Deploy
- npm install -g [email protected] # install meteor-up for deployment
- (cd .deploy/production; mup deploy)
# Notify Rollbar about deploy
- curl https://api.rollbar.com/api/1/deploy/ -F access_token=$ROLLBAR_SERVER_ACCESS_TOKEN -F environment=production -F revision=$CIRCLE_SHA1 -F local_username=$CIRCLE_USERNAME