-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
52 lines (40 loc) · 1.5 KB
/
.travis.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
---
language: node_js
node_js:
- 0.10
git:
depth: 1
branches:
except:
- gh-pages
env:
matrix:
- TEST=unit
- TEST=sauce
global:
- secure: "GhqCBThsPRyVORGZwqvW8jdBza2qc7zgYF2rRaksTQzAYLvrX+UXuoAZSbkF\nWAmd4Dx3IfUm5Hv/NKg41Snh1XNsJrU2aXh5VZEbi9xCs5pwQ87zSXOvDjEr\nwTqfLISlyrUBNSIYjcUEE029jBCKq63giK4QVeL58FY9AKC2MxQ="
- secure: "gtSV2z58U4UJ8gzvPgPaA8+91ySrqEkcAgfhtTHEt+ayGAIZibeVi+RRSaGW\nTY3Vaonn8jfT9L7f49v4UHtsUO9fY5W4Q/kkXyrifTBfbcAlnIcVPZvvZBck\njcFwW4MqO4WwqgdR1+Yo8gQQq0tOj5lVSAEI+tJhPZQB7BdiX3M="
before_script:
- if [ "x$TEST" == "xsauce" -a "${TRAVIS_PULL_REQUEST}" != "false"]; then curl -L https://gist.githubusercontent.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash; fi
- npm install -g gulp
script:
- '[ "${TEST}" = "sauce" -a "${TRAVIS_PULL_REQUEST}" != "false"] && true || gulp --require LiveScript test:$TEST'
after_script:
- cat coverage/lcov.info | node_modules/karma-coveralls/node_modules/coveralls/bin/coveralls.js
before_deploy: "BUILD=git-`git describe --always` gulp --require LiveScript build ly-diff server --env production"
deploy:
on:
branch: master
condition: "$TEST = unit"
provider: nodejitsu
user: clkao
skip_cleanup: true
api_key:
secure: ! 'ZTIUonMOmBRMz5SpI0GvkBLAjoZuq6M4b7flq7HFDAQoaxv6Gok3UOMGmUV6
mI7uGnLqAggYjWeoIF6yFUIN69hLpIwvfZylOdPU+h/W+H0xlxxtHCvSyc5R
Ad1AHf93zbf845Cg4LSR0I6fKPewhBW8uFKF5ZYcd7ppofwYrI8='
notifications:
irc:
channels:
- "irc.freenode.net#g0v.tw"
on_success: always