-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
35 lines (29 loc) · 857 Bytes
/
.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
language: generic
sudo: false
os:
- linux
before_install:
- if [ $TRAVIS_OS_NAME == "linux" ]; then
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
sh -e /etc/init.d/xvfb start;
sleep 3;
fi
install:
- TRAVIS_NODE_VERSION="7";
# Clear out whatever version of NVM Travis has as it is old.
- rm -rf ~/.nvm;
# Grab NVM.
- git clone https://github.com/creationix/nvm.git ~/.nvm;
# Checkout the latest stable tag.
# Note that you can just hardcode a preferred version here.
- (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`);
# Install the desired version of Node
- source ~/.nvm/nvm.sh;
- nvm install $TRAVIS_NODE_VERSION;
- npm install
- npm run vscode:prepublish
script:
- npm run lint
- npm test --silent
after_success:
- bash <(curl -s https://codecov.io/bash)