File: .travis.yml

package info (click to toggle)
node-nan 2.14.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,396 kB
  • sloc: cpp: 7,564; python: 3,408; ansic: 1,548; javascript: 1,535; makefile: 114; sh: 34
file content (46 lines) | stat: -rw-r--r-- 1,932 bytes parent folder | download
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
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="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