forked from vscode-icons/vscode-icons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
79 lines (74 loc) · 2.29 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: ~> 1.0
dist: bionic
os:
- linux
- osx
- windows
language: node_js
node_js:
- node # latest node
- 12.14.1 # vscode >= 1.49.0
- 12.8.1 # vscode >= 1.43.0 < 1.49.0
- 12.4.0 # vscode >= 1.40.0 < 1.43.0
git:
depth: 5
submodules: false
install:
- npm install
cache:
npm: false
before_script:
- '[[ $TRAVIS_OS_NAME == "linux" ]]
&& URL="https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64"
&& curl -sL $URL > cc-test-reporter && chmod +x cc-test-reporter && ./cc-test-reporter before-build
&& echo "Test report initialized"
|| echo ""'
script:
- npm test
after_script:
- '[[ $TRAVIS_OS_NAME == "linux" ]] && ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT || echo ""'
jobs:
allow_failures:
- node_js: node
- stage: wiki pages icons list update
- stage: docker vsi:latest
- stage: docker vsi:tag
fast_finish: true
include:
- stage: wiki pages icons list update
if: repo =~ ^vscode-icons AND branch = master AND type = push
os: linux
node_js: 12.4.0
addons:
apt:
sources: [ubuntu-toolchain-r-test]
packages: [libstdc++-5-dev]
before_script: skip
script: npm run compile
after_success: npx vscode-icons/wpilgenerator
after_script: skip
- stage: publish
if: repo =~ ^vscode-icons AND tag IS present AND type = push
os: linux
node_js: 12.4.0
before_script: skip
script: npx vsce@1.88.0 publish -p $VSCE_TOKEN
after_script: skip
- stage: docker vsi:latest
if: repo =~ ^vscode-icons AND branch = master AND type = push
language: generic
cache: false
install: skip
before_script: skip
script: curl -L $DOCKER_TRIGGER_URL | bash -s -- --token $TRAVIS_TOKEN
after_script: skip
- stage: docker vsi:tag
if: repo =~ ^vscode-icons AND tag IS present AND type = push
language: generic
cache: false
install: skip
before_script: skip
script: curl -L $DOCKER_TRIGGER_URL | bash -s -- --token $TRAVIS_TOKEN --tag $TRAVIS_TAG
after_script: skip
# See this if we need to test the extension via vscode:
# https://code.visualstudio.com/Docs/extensions/testing-extensions#_running-tests-automatically-on-travis-ci-build-machines