forked from react-component/menu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (35 loc) · 1020 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
42
language: node_js
sudo: false
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: ZA1AnTsJO9Y4lT+G9t7D0JEsgDoq7Dv2toYqXKzThdeHtjwToJ3BD98GksPrq7IkYE0H+Mr7J5c9PPJWQ2neYw42l+FaWtpPd7EypVudnMI/JM9CEND3llz3hRKaeqSN8ny23neR6GwXUsTSNwvXZ+pm0PIGDAJl8nEtX4BAdiw=
- secure: IRy84xceUtLxjZLb13NQQqPmOa8X9CJy0SSi2DLYwBldhOrebXEBqkdIxwkIsog8og/PsSvVKDYTZCKOF0LVkRbzrsJWzT6trKWf+dzvV2QXOInYU1Whke3ECCuiq9RISjfSKFWvwHHhS8NnmoiT+FkfP7NIjbwsRTISCkNxwNk=
matrix:
allow_failures:
- env: "TEST_TYPE=saucelabs"