-
Notifications
You must be signed in to change notification settings - Fork 507
/
.travis.yml
52 lines (52 loc) · 2.06 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
os:
- linux
- osx
language: cpp
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- bc
- g++-4.8
env:
matrix:
- TRAVIS_NODE_VERSION="0.10"
- TRAVIS_NODE_VERSION="0.12"
- TRAVIS_NODE_VERSION="4"
- TRAVIS_NODE_VERSION="5"
- TRAVIS_NODE_VERSION="6"
- TRAVIS_NODE_VERSION="7"
- TRAVIS_NODE_VERSION="8"
- TRAVIS_NODE_VERSION="9"
- TRAVIS_NODE_VERSION="10"
- TRAVIS_NODE_VERSION="11"
- TRAVIS_NODE_VERSION="12"
- TRAVIS_NODE_VERSION="13"
- TRAVIS_NODE_VERSION="14"
- TRAVIS_NODE_VERSION="15"
- TRAVIS_NODE_VERSION="16"
- TRAVIS_NODE_VERSION="17"
- TRAVIS_NODE_VERSION="18"
- TRAVIS_NODE_VERSION="19"
- TRAVIS_NODE_VERSION="20"
- TRAVIS_NODE_VERSION="lts/*" ELECTRON_VERSION="2.0.18"
- TRAVIS_NODE_VERSION="lts/*" ELECTRON_VERSION="3.1.13"
- TRAVIS_NODE_VERSION="lts/*" ELECTRON_VERSION="4.2.12"
- TRAVIS_NODE_VERSION="lts/*" ELECTRON_VERSION="5.0.13"
- TRAVIS_NODE_VERSION="lts/*" ELECTRON_VERSION="6.1.10"
- TRAVIS_NODE_VERSION="lts/*" ELECTRON_VERSION="7.2.3"
- TRAVIS_NODE_VERSION="lts/*" ELECTRON_VERSION="8.2.3"
matrix:
exclude:
- os: osx
env: TRAVIS_NODE_VERSION="0.12"
install:
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi
- $CXX --version
- if [[ $TRAVIS_NODE_VERSION == "0.8" ]]; then npm config set strict-ssl false; fi
- if [[ -z "$ELECTRON_VERSION" && $(echo "$TRAVIS_NODE_VERSION < 4" | bc -l) == "1" ]]; then npm install npm@2 && mv node_modules npm && npm/.bin/npm --version && npm/.bin/npm install; else npm --version && npm install; fi
- if [[ -z "$ELECTRON_VERSION" ]]; then node_modules/.bin/node-gyp rebuild --directory test; else node_modules/.bin/node-gyp rebuild --target=v$ELECTRON_VERSION --dist-url=https://atom.io/download/electron --directory test; fi
script:
- if [[ -z "$ELECTRON_VERSION" ]]; then node_modules/.bin/tap --gc test/js/*-test.js; fi