-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (50 loc) · 2.05 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
53
54
55
56
57
58
59
language: node_js
# Node versions: https://node.green/
matrix:
include:
- name: "browsers linux"
os: "linux"
node_js: "11.5.0"
# - name: "browsers osx"
# os: "osx"
# node_js: "11.5.0"
# - name: "browsers windows"
# os: "windows"
# node_js: "11.5.0"
- name: "node old"
os: "osx"
node_js: "8.6.0"
env: NODE_ONLY=true
sudo: false
cache: npm
addons:
chrome: stable
firefox: latest
browserstack:
username: "nikolaymakhonin1"
access_key:
# You shoud generate this for each repositories.
# See: https://docs.travis-ci.com/user/encryption-keys
secure: "Z/pTlHdmPQ5Ge51yzuRau1QKxd6FrB+vlkaKlpltqfxdTC96d2Z2H5tXvOM8W0QJM56Rne+KJ97T3qvqNhLKCgXgsaRqCiKMeJ6dWXl5AQk9PFq1zCJWOuQdt8mQJ6Zi6Y/leZBaOUAL/7mqrg0GkgL2Ck5j6n7AcWymHb40QvMV3BmYIiEi1i4FRuJ+w8ULLYT7RbgQq7IMZNmP9s57giaSAlxEIHHpBoGyP7wVecZHPVfjh2pmkBkq7wCYX4KzyriHde3y3R1h7Y7ZM5RXtyboscYM4fcwg6/qslq00MVfCDI+5zud+/O8b9Y1F/I/gUoVZByhQJA0WtUGsOBMLpS76OWPZX7b2UmyYBw8BOyal5rV8V+mbEqtFksyeGBI/bkRD6wllxPd/uJ+qOMvet4H8DnpxeJnq/h0asMRvar6dWtl2BjNNWawYVicxCUvY2/aPMYxjRYTIem8jfwfCKgVuiThNrPR4A8tVPESEE727JsEaLKPWTvJ2DLjOURXoUsWBnHYunyibUuYGgox4Lfl9ZiRvIbotg9hbWnHaskg5Rzot3+lI3KYhyotWDyxxRBN1IERqsE68Gn5Yk/e97LNAGMt/hK7O69QKRDqdJFurb4JuMw2QIOeKvgthdUuPl4pkfJs7aIgYirqAiV3ov8BRclOkMkeNhOUDOOScDk="
services:
- xvfb
before_install:
# Skip updating shrinkwrap / lock
- "npm config set shrinkwrap false"
- "npm install coveralls"
# Setup Node.js version-specific dependencies
- "test $(echo $TRAVIS_NODE_VERSION | cut -d. -f1) -ge 4 || npm rm --save-dev $(grep -E '\"eslint\\S*\"' package.json | cut -d'\"' -f2)"
# Update Node.js modules
- "test ! -d node_modules || npm prune"
- "test ! -d node_modules || npm rebuild"
-
before_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh -e /etc/init.d/xvfb start; fi
- sleep 3 # give xvfb some time to start
script:
- if [[ ${NODE_ONLY} == true ]]; then
npm run test:coverage;
else
npm run ci;
fi