forked from vscode-icons/vscode-icons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
78 lines (73 loc) · 2.24 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
language: node_js
os:
- linux
- osx
node_js:
- node # latest node
- 10.11.0 # vscode >= 1.36.0
- 10.2.0 # vscode >= 1.31.0 < 1.36.0
- 8.9.3 # vscode >= 1.26.0 < 1.31.0
git:
depth: 5
submodules: false
matrix:
allow_failures:
- node_js: node
fast_finish: true
env:
global:
- CC_OS_NAME=$(if [[ $TRAVIS_OS_NAME == "osx" ]]; then echo "darwin"; else echo $TRAVIS_OS_NAME; fi)
install:
- npm install
cache: npm
before_script:
- curl -sL "https://codeclimate.com/downloads/test-reporter/test-reporter-latest-$CC_OS_NAME-amd64" > cc-test-reporter
- chmod +x cc-test-reporter
- ./cc-test-reporter before-build
script: npm test
after_success:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
jobs:
include:
- stage: wiki pages icons list update
if: repo =~ ^vscode-icons AND branch = master AND type = push
os: linux
node_js: 8.9.3
addons:
apt:
sources: [ubuntu-toolchain-r-test]
packages: [libstdc++-4.9-dev]
install:
- npm run preinstall
- npm i vscode-icons/wpilgenerator --no-save
before_script: false
script: npm run compile
after_success: wpilgen
- stage: publish
if: repo =~ ^vscode-icons AND tag IS present AND type = push
os: linux
node_js: 8.9.3
install:
- npm run preinstall
- npm i vsce --no-save
before_script: false
script: vsce publish -p $VSCE_TOKEN
after_success: false
- stage: docker vsi:latest
if: repo =~ ^vscode-icons AND branch = master AND type = push
sudo: required
language: generic
install: false
before_script: false
script: curl -L $DOCKER_TRIGGER_URL | bash -s -- --token $TRAVIS_TOKEN
after_success: false
- stage: docker vsi:tag
if: repo =~ ^vscode-icons AND tag IS present AND type = push
sudo: required
language: generic
install: false
before_script: false
script: curl -L $DOCKER_TRIGGER_URL | bash -s -- --token $TRAVIS_TOKEN --tag $TRAVIS_TAG
after_success: false
# 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