-
Notifications
You must be signed in to change notification settings - Fork 23
/
circle.yml
45 lines (42 loc) · 1.31 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
machine:
environment:
YARN_VERSION: 0.17.10
PATH: "${PATH}:${HOME}/.yarn/bin"
dependencies:
pre:
- case $CIRCLE_NODE_INDEX in 0) NODE_VERSION=7 ;; 1) NODE_VERSION=6 ;; 2) NODE_VERSION=4 ;; esac; nvm install $NODE_VERSION && nvm alias default $NODE_VERSION
- |
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
- ~/.yarn-cache
override:
- yarn
- yarn global add syncano-cli@beta
# the line below is a hack for permissions issues in zefir package. remove when fixed.
- chmod -R u+x node_modules
test:
override:
- yarn run build
deployment:
production:
branch: syncano-ascend-master
commands:
- syncano-cli deploy
- syncano-cli hosting config staging --cname syncano.rocks
- syncano-cli hosting config production --cname syncano.io
- syncano-cli hosting sync production
staging:
branch: syncano-ascend
commands:
- syncano-cli deploy
- syncano-cli hosting config staging --cname syncano.rocks
- syncano-cli hosting config production --cname syncano.io
- syncano-cli hosting sync staging
experimental:
notify:
branches:
only:
- syncano-ascend