-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
41 lines (34 loc) · 1008 Bytes
/
.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
language: node_js
notifications:
email:
node_js:
- 4.0.0
before_install:
- |
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^(docs|examples))/'
then
echo "Only docs were updated, stopping build process."
exit
fi
npm install mocha-phantomjs -g
phantomjs --version
script:
- |
if [ "$TEST_TYPE" = test ]; then
npm test
else
npm run $TEST_TYPE
fi
env:
matrix:
- TEST_TYPE=lint
- TEST_TYPE=browser-test
- TEST_TYPE=browser-test-cover
- TEST_TYPE=saucelabs
global:
- secure: S7tamfHhEH1/pNU+g5JZ5njRJAQaHjflrM8uTAcr9m5Ji+V0kdSu8/Jz5fMAwoF3P4g0e+mN/sJvOCXEmb80cLFC/rZ78DJSvCi1V7vDt2xurX7dpTl+FocdH47zM0VUVV7hqt/Nipy5OnXFFX/Or3TUgPrlFwZakCUBNuYqVIk=
- secure: VcFksmiJIF85l8kvXUAH6mqHfa5n61i1yWf4ZOjueRR1wmdsElPD95fYQfQJSuNojiughnob+qTPY8MaLkLewfeW8xc7TtqR/C0h6UgC7ZfrqOcTemWtwlTP/VZMJ2Ewo0uyOBZKcZR2YwBzXV3TW+qNoDJXuU7EhzP5NN78Br0=
matrix:
allow_failures:
- env: "TEST_TYPE=saucelabs"