forked from dead-claudia/thallium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (59 loc) · 1.37 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
60
61
62
63
64
65
66
language: node_js
node_js:
- "4"
- "5"
- "6"
- "7"
os:
- osx
- linux
env:
- ENV=node
before_install:
# OS X already has a GUI
- if [[ "${TRAVIS_OS_NAME}" == 'linux' ]] && [[ "${ENV}" != 'node' ]]; then export DISPLAY=:99.0; fi
- if [[ "${TRAVIS_OS_NAME}" == 'linux' ]] && [[ "${ENV}" != 'node' ]]; then sh -e /etc/init.d/xvfb start; fi
install:
# nvm isn't yet supported on OSX
- if [[ "${TRAVIS_OS_NAME}" == 'osx' ]]; then brew install nvm; fi
- nvm install stable
- npm update -g npm
- npm install
- nvm install ${TRAVIS_NODE_VERSION}
# Oddly, Travis doesn't set the PATH on OSX...
- if [[ "${TRAVIS_OS_NAME}" == 'osx' ]]; then export PATH=$(pwd)/node_modules/.bin:${PATH}; fi
script:
- nvm use stable
- node make lint
- nvm use ${TRAVIS_NODE_VERSION}
- ./scripts/travis.sh
matrix:
fast_finish: true
include:
# Browser tests
- node_js: "6"
env: ENV=chrome
os: linux
sudo: required
dist: trusty
- node_js: "6"
env: ENV=firefox
os: linux
addons:
firefox: latest
- node_js: "6"
env: ENV=firefox-beta
os: linux
addons:
firefox: latest-beta
- node_js: "6"
env: ENV=firefox-esr
os: linux
addons:
firefox: latest-esr
- node_js: "6"
env: ENV=phantomjs
os: osx
- node_js: "6"
env: ENV=phantomjs
os: linux