This repository has been archived by the owner on Oct 10, 2018. It is now read-only.
/
.travis.yml
77 lines (71 loc) · 2.19 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
language: node_js
node_js: '9'
stages:
- name: test
if: tag IS blank
- name: deploy
if: branch = master AND type != pull_request
notifications:
email: false
cache: yarn
jobs:
include:
- stage: test
os: linux
sudo: required
env:
- CODE_TESTS_WORKSPACE=$TRAVIS_BUILD_DIR/test/_workspace
- CODE_TESTS_PATH=$TRAVIS_BUILD_DIR/out/test/single-workspace-tests
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
- gcc-4.9-multilib
- g++-4.9-multilib
- zip
- libgtk2.0-0
- libx11-dev
- libxkbfile-dev
- libsecret-1-dev
before_install:
- export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
- yarn global add greenkeeper-lockfile@1
install:
- yarn install
before_script:
- greenkeeper-lockfile-update
script:
- yarn test --silent
after_script:
- greenkeeper-lockfile-upload
- stage: deploy
install:
- rvm get stable
- rvm install 2.4
- gem install github_changelog_generator
- yarn global add vsce semantic-release@^12.2.0 semantic-release-vsce@^1.0.0
- yarn install
before_script:
- yarn build
- yarn install --production
script:
- semantic-release
#- github_changelog_generator --no-verbose -u buehler -p typescript-hero --enhancement-labels "enhancement,feature" --include-labels "bug,enhancement,feature" --future-release $(node -p "require('./package.json').version")
# add as soon as multi root workspaces are available:
#- CODE_TESTS_WORKSPACE=$TRAVIS_BUILD_DIR/test/multi-root.code-workspace CODE_TESTS_PATH=$TRAVIS_BUILD_DIR/out/test/multi-root-workspace-tests
# OSX Build. which takes a billon years to complete.
# - stage: test
# os: osx
# sudo: false
# env:
# - CODE_TESTS_WORKSPACE=$TRAVIS_BUILD_DIR/test/_workspace
# - CODE_TESTS_PATH=$TRAVIS_BUILD_DIR/out/test/single-workspace-tests
# install:
# - yarn install
# script:
# - yarn test --silent