Skip to content

Commit

Permalink
Automatic release in CI (#20)
Browse files Browse the repository at this point in the history
* Automatic release in CI

* Run test after build
  • Loading branch information
formulahendry authored Nov 29, 2017
1 parent 20f1a7a commit 4a30594
Showing 1 changed file with 30 additions and 15 deletions.
45 changes: 30 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,37 @@
sudo: false
language: node_js
node_js:
- "node"
- node
os:
- osx
- linux

- osx
- linux
before_install:
- if [ $TRAVIS_OS_NAME == "linux" ]; then
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
sh -e /etc/init.d/xvfb start;
sleep 3;
fi

- if [ $TRAVIS_OS_NAME == "linux" ]; then export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
sh -e /etc/init.d/xvfb start; sleep 3; fi
install:
- npm install
- npm run vscode:prepublish

- npm install
- npm install -g vsce
script:
- npm run tslint
- npm test --silent
- npm run tslint
- vsce package
- npm test --silent
deploy:
- provider: releases
skip_cleanup: true
api_key: "$GIT_TOKEN"
file_glob: true
file: "*.vsix"
on:
tags: true
condition: "$TRAVIS_OS_NAME == linux"
- provider: script
skip_cleanup: true
script: vsce publish -p $VSCE_TOKEN --packagePath *.vsix
on:
tags: true
condition: "$TRAVIS_OS_NAME == linux && $TRAVIS_TAG =~ $ISPRODTAG"
env:
global:
- ISPRODTAG=^v?[0-9]+\.[0-9]+\.[0-9]+$
- secure: naq0cSeZte9cjXrvz8zbpTLSa3FFJH1nUtEhgEt/6SPjMRFdwCH2uHIwg9CvPd/kUlpBc0HpqX+f3Zj/xRldnBXYSB/6yvFJcajjYPaRzFobqIpFzSchQHEFRVZLXbKfi6GqeAezieLadmuFP8Mae3/JcNBhxyVTjiMQQOoyCAOwZMK+GufwutcFC1F7h/ibJsk5N1IqVk+MtkmvezA9Ni4Z1gNptOVhZox5d1T4fj60KzDUWMaeV+21LDs39glcBD28nfCGvV2ZEhqktiG+i0ConndkfMcxDy0T5hqDaKrRCFIY9rmutY2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