Skip to content

Commit b468103

Browse files
committed
use nvs for CI testing
1 parent 66c126f commit b468103

File tree

2 files changed

+47
-22
lines changed

2 files changed

+47
-22
lines changed

.travis.yml

+31-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,34 @@
1-
language: node_js
2-
node_js:
3-
- "0.10"
4-
- "0.12"
5-
- "4"
6-
- "6"
7-
- "8"
8-
env:
9-
- UGLIFYJS_TEST_ALL=1
1+
addons:
2+
apt:
3+
sources:
4+
- ubuntu-toolchain-r-test
5+
packages:
6+
- libstdc++-4.9-dev
7+
cache:
8+
directories: tmp
9+
language: generic
1010
matrix:
1111
fast_finish: true
1212
sudo: false
13-
cache:
14-
directories: tmp
13+
env:
14+
global:
15+
- UGLIFYJS_TEST_ALL=1
16+
matrix:
17+
- NODEJS_VER=node/0.10
18+
- NODEJS_VER=node/0.12
19+
- NODEJS_VER=node/4
20+
- NODEJS_VER=node/6
21+
- NODEJS_VER=node/8
22+
- NODEJS_VER=node/latest
23+
before_install:
24+
- git clone --branch v1.4.2 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs
25+
- . ~/.nvs/nvs.sh
26+
- nvs --version
27+
install:
28+
- nvs add $NODEJS_VER
29+
- nvs use $NODEJS_VER
30+
- node --version
31+
- npm --version --no-update-notifier
32+
- npm install --no-optional --no-save --no-update-notifier
33+
script:
34+
- npm test --no-update-notifier

appveyor.yml

+16-11
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
environment:
2+
UGLIFYJS_TEST_ALL: 1
23
matrix:
3-
- nodejs_version: "0.10"
4-
- nodejs_version: "0.12"
5-
- nodejs_version: "4"
6-
- nodejs_version: "6"
7-
- nodejs_version: "8"
4+
- NODEJS_VER: node/0.10
5+
- NODEJS_VER: node/0.12
6+
- NODEJS_VER: node/4
7+
- NODEJS_VER: node/6
8+
- NODEJS_VER: node/8
9+
- NODEJS_VER: node/latest
810
install:
9-
- ps: Install-Product node $env:nodejs_version
10-
- set UGLIFYJS_TEST_ALL=1
11-
- npm install
11+
- git clone --branch v1.4.2 --depth 1 https://github.com/jasongin/nvs.git %LOCALAPPDATA%\nvs
12+
- set PATH=%LOCALAPPDATA%\nvs;%PATH%
13+
- nvs --version
14+
- nvs add %NODEJS_VER%
15+
- nvs use %NODEJS_VER%
16+
- node --version
17+
- npm --version --no-update-notifier
18+
- npm install --no-optional --no-save --no-update-notifier
1219
build: off
1320
cache:
1421
- tmp
1522
matrix:
1623
fast_finish: true
1724
test_script:
18-
- node --version
19-
- npm --version
20-
- npm test
25+
- npm test --no-update-notifier

0 commit comments

Comments
 (0)