Skip to content

Commit 32a03b5

Browse files
committed
update travis config
1 parent 2102bb4 commit 32a03b5

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.travis.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1+
language: generic
2+
13
sudo: false
2-
language: node_js
3-
node_js:
4-
- "iojs"
5-
- "7"
6-
4+
75
os:
86
- osx
97
- linux
@@ -16,8 +14,20 @@ before_install:
1614
fi
1715

1816
install:
17+
- TRAVIS_NODE_VERSION="6";
18+
# Clear out whatever version of NVM Travis has as it is old.
19+
- rm -rf ~/.nvm;
20+
# Grab NVM.
21+
- git clone https://github.com/creationix/nvm.git ~/.nvm;
22+
# Checkout the latest stable tag.
23+
# Note that you can just hardcode a preferred version here.
24+
- (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`);
25+
# Install the desired version of Node
26+
- source ~/.nvm/nvm.sh;
27+
- nvm install $TRAVIS_NODE_VERSION;
1928
- npm install
2029
- npm run vscode:prepublish
2130

2231
script:
32+
- npm run lint
2333
- npm test --silent

0 commit comments

Comments
 (0)