-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcircle.yml
39 lines (38 loc) · 866 Bytes
/
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
general:
branches:
ignore:
- gh-pages
- master
experimental:
notify:
branches:
only:
- production
machine:
node:
version: 5.7.0
environment:
CIRCLE_BUILD_DIR: $HOME/$CIRCLE_PROJECT_REPONAME
PATH: $PATH:$CIRCLE_BUILD_DIR/bin
post:
- mkdir -p $CIRCLE_BUILD_DIR/bin
- git config --global user.name "CircleCi"
- git config --global user.email "[email protected]"
dependencies:
pre:
- ./bin/ci/install-sassc
override:
- npm install --dev
cache_directories:
- bin
deployment:
production:
branch: production
commands:
- make --no-print-directory deploy:production
- ./bin/ci/notify "production" "http://ysdn2016.com"
staging:
branch: develop
commands:
- make --no-print-directory deploy
- ./bin/ci/notify "staging" "http://staging.ysdn2016.com"