add node-chakracore to Travis CI (#911)
authorAlex Lam S.L <alexlamsl@gmail.com>
Tue, 17 Apr 2018 05:35:30 +0000 (13:35 +0800)
committeralexlamsl <alexlamsl@gmail.com>
Tue, 17 Apr 2018 10:38:29 +0000 (18:38 +0800)
.travis.yml

index aa074a4..7588fec 100644 (file)
@@ -1,15 +1,32 @@
-language: node_js
-
-sudo: false
-
-node_js:
-  - "4"
-  - "6"
-  - "8"
-
+addons:
+  apt:
+    sources:
+      - ubuntu-toolchain-r-test
+    packages:
+      - libstdc++-4.9-dev
 branches:
   only:
     - gh-pages
-
+language: generic
 matrix:
   fast_finish: true
+sudo: false
+env:
+  matrix:
+    - NODEJS_VER=chakracore/latest
+    - NODEJS_VER=node/4
+    - NODEJS_VER=node/6
+    - NODEJS_VER=node/8
+    - NODEJS_VER=node/latest
+before_install:
+  - git clone --branch v1.4.2 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs
+  - . ~/.nvs/nvs.sh
+  - nvs --version
+install:
+  - nvs add $NODEJS_VER
+  - nvs use $NODEJS_VER
+  - node --version
+  - npm --version --no-update-notifier
+  - npm install --no-optional --no-save --no-update-notifier
+script:
+  - npm test --no-update-notifier