1
1
language : node_js
2
2
3
3
node_js :
4
- - 8
4
+ - 8
5
5
6
6
sudo : false
7
7
8
8
cache :
9
9
directories :
10
- - " node_modules"
10
+ - ' node_modules'
11
11
12
12
os :
13
13
- osx
17
17
# https://code.visualstudio.com/docs/extensions/testing-extensions#_running-tests-automatically-on-travis-ci-build-machines
18
18
before_install :
19
19
- if [ $TRAVIS_OS_NAME == "linux" ]; then
20
- export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
21
- sh -e /etc/init.d/xvfb start;
22
- sleep 3;
20
+ export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
21
+ sh -e /etc/init.d/xvfb start;
22
+ sleep 3;
23
23
fi
24
24
25
25
install :
26
- - npm install
27
- - npm run vscode:prepublish
26
+ - npm install
27
+ - npm run vscode:prepublish
28
28
29
29
script :
30
- - npm test --silent
30
+ - npm test
31
31
32
32
before_deploy :
33
- - npm install -g vsce
34
- - vsce package
33
+ - npm install -g vsce
34
+ - vsce package
35
35
36
36
# Deploy the extension to the Marketplace and GitHub releases (only on tags).
37
37
# Note that this only deploys from the master branch, but will still allow
@@ -44,14 +44,14 @@ before_deploy:
44
44
# b) Set a environment variable `VS_TOKEN` with the value of your VS Code personal token
45
45
# c) Make sure `Display value in build log` is turned OFF!
46
46
deploy :
47
- - provider : script # Deploy to VS Code Market Place (only on tags!).
48
- script : vsce publish -p $VS_CODE
49
- skip_cleanup : true
50
- on : # Publish on all builds on master branch.
51
- repo : alanz/vscode-hie-server
52
- branch : master
53
- tags : true
54
- condition : $TRAVIS_OS_NAME = linux
47
+ - provider : script # Deploy to VS Code Market Place (only on tags!).
48
+ script : vsce publish -p $VS_CODE
49
+ skip_cleanup : true
50
+ on : # Publish on all builds on master branch.
51
+ repo : alanz/vscode-hie-server
52
+ branch : master
53
+ tags : true
54
+ condition : $TRAVIS_OS_NAME = linux
55
55
# - provider: releases # Deploy the *.vsix pcakge to GitHub releases.
56
56
# file_glob: true
57
57
# file: "*.vsix"
0 commit comments