forked from rogalmic/vscode-bash-debug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (44 loc) · 889 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
47
48
49
50
51
52
53
language: node_js
node_js:
- '12.18.3'
os:
- linux
group: dev
sudo: required
dist: bionic
branches:
only:
- master
- /^v\d+\.\d+\.\d+$/
env:
global:
- RELEASE_TAG_EXPRESSION=^v?[0-9]+\.[0-9]+\.[0-9]+$
install:
- npm install
script:
- npm run test
- npm run package
deploy:
- provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: "*.vsix"
skip_cleanup: true
on:
branch: master
condition: "$TRAVIS_OS_NAME == linux"
- provider: script
script: npx vsce publish -p $VSCE_TOKEN --packagePath *.vsix
skip_cleanup: true
on:
tags: true
condition: "$TRAVIS_TAG =~ $RELEASE_TAG_EXPRESSION"
- provider: script
script: npx ovsx publish *.vsix -p $OVSX_TOKEN
skip_cleanup: true
on:
tags: true
condition: "$TRAVIS_TAG =~ $RELEASE_TAG_EXPRESSION"
cache:
directories:
- node_modules