forked from ritwickdey/vscode-live-server-plus-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (39 loc) · 750 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
36
37
38
39
40
41
42
43
44
45
46
language: node_js
node_js:
- "10.14.2"
cache:
directories:
- node_modules
yarn: false
os:
- osx
- linux
addons:
apt:
packages:
- libsecret-1-dev
before_install:
- rm -fr package-lock.json
- 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:
- npm i -g vsce
- npm install
- npm run vscode:prepublish
script:
- if [ $TRAVIS_OS_NAME == "linux" ]; then
npm dedupe;
fi
- npm test --silent
- vsce package -o LiveServer-$TRAVIS_TAG-$TRAVIS_OS_NAME.vsix
deploy:
provider: releases
api_key: $github_token
file: "*.vsix"
file_glob: true
skip_cleanup: true
on:
tags: true