forked from code-corps/code-corps-ember
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
40 lines (37 loc) · 1.06 KB
/
circle.yml
File metadata and controls
40 lines (37 loc) · 1.06 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
machine:
node:
version: 6.9.4
environment:
YARN_VERSION: 0.18.1
PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
dependencies:
pre:
- |
if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
fi
cache_directories:
- ~/.yarn
- ~/.cache/yarn
- /home/ubuntu/nvm/versions/node/v6.9.4/bin
- /home/ubuntu/nvm/versions/node/v6.9.4/lib/node_modules
override:
- yarn global add bower
- yarn global add phantomjs-prebuilt
- yarn add node-sass
- yarn install
- bower install
test:
override:
- yarn test
- ember coverage-merge
- if [ ! ${CIRCLE_PR_USERNAME} ]; then ./node_modules/coveralls/bin/coveralls.js < ./coverage/lcov.info; fi
deployment:
production:
branch: master
commands:
- 'node_modules/.bin/ember deploy production --activate'
staging:
branch: develop
commands:
- 'node_modules/.bin/ember deploy staging --activate'