forked from microsoft/vscode-postgresql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (46 loc) · 1.17 KB
/
.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
sudo: required
dist: trusty
# safelist
branches:
only:
- master
- dev
language: node_js
node_js:
- "6.9.1"
os:
- linux
- osx
addons:
apt:
packages:
- libsecret-1-dev
before_install:
- export CHROME_BIN=chromium-browser
# Set up chrome on osx
- if [ $TRAVIS_OS_NAME == "osx" ]; then
brew cask install google-chrome;
export CHROME_BIN=/Applications/Google\ Chrome.app;
fi
- export BUILDMACHINE=true
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install xclip; fi
- npm install -g npm@4
install:
- npm install -g --silent gulp-cli
- npm install -g --silent [email protected]
- npm install
- gulp install
script:
- gulp build
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then gulp cover:enableconfig; fi
- if [ $TRAVIS_OS_NAME == "osx" ]; then
sudo xvfb-maybe ./node_modules/.bin/karma start;
else
xvfb-maybe ./node_modules/.bin/karma start;
fi
- xvfb-maybe node ./node_modules/vscode/bin/test
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
gulp cover:combine;
node_modules/.bin/coveralls < coverage/lcov.info;
fi