forked from vscode-icons/vscode-icons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (69 loc) · 2.06 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
language: node_js
os:
- linux
- osx
node_js:
- node # latest node
- 10.2.0 # insiders
- 8.9.3 # vscode >= 1.26.0
- 7.9.0 # vscode >= 1.16.0 < 1.26.0
git:
depth: 5
submodules: false
matrix:
allow_failures:
- node_js: node
fast_finish: true
cache: yarn
before_install:
- curl -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
before_script:
- npm i codeclimate-test-reporter codecov --no-save
- npm run postinstall
script: npm test
after_success:
- if [[ $CODECLIMATE_REPO_TOKEN ]] ; then codeclimate-test-reporter < ./coverage/lcov.info ; fi
- codecov --disable=gcov
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]
before_script:
- npm i vscode-icons/wpilgenerator --no-save
- npm run postinstall
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
before_script:
- npm i vsce --no-save
- npm run postinstall
script: vsce publish -p $VSCE_TOKEN
after_success:
- stage: docker vsi:latest
if: repo =~ ^vscode-icons AND branch = master AND type = push
sudo: required
language: generic
before_install:
before_script:
script: curl -L $DOCKER_TRIGGER_URL | bash -s -- --token $TRAVIS_TOKEN
after_success:
- stage: docker vsi:tag
if: repo =~ ^vscode-icons AND tag IS present AND type = push
sudo: required
language: generic
before_install:
before_script:
script: curl -L $DOCKER_TRIGGER_URL | bash -s -- --token $TRAVIS_TOKEN --tag $TRAVIS_TAG
after_success:
# 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