summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorChristoph Schlosser <christophschlosser@users.noreply.github.com>2017-10-07 15:24:14 +0200
committerGitHub <noreply@github.com>2017-10-07 15:24:14 +0200
commit58bdc740cdbec1aa93b21e169bb866ef080e8045 (patch)
tree170202da2a0bb7dc97ab03d6119836e84ebb96f5 /.travis.yml
parentecdd8939344f0cc85c064d0be616b950f144702c (diff)
parent338446ad72d3581745020aa78783f4b4d4afe4cb (diff)
downloaddoxdocgen-58bdc740cdbec1aa93b21e169bb866ef080e8045.tar.gz
Merge pull request #4 from christophschlosser/0.0.2
Release 0.0.2
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml23
1 files changed, 22 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 760e13c..9d1eb9a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,9 @@
sudo: false
+branches:
+ only:
+ - master
+
os:
- linux
- osx
@@ -20,6 +24,7 @@ stages:
- lint
- build
- test
+ - release
before_install:
- if [ $TRAVIS_OS_NAME == "linux" ]; then
@@ -36,4 +41,20 @@ jobs:
- stage: lint
script: tslint -c tslint.json 'src/**/*.ts'
- stage: build
- script: npm run vscode:prepublish \ No newline at end of file
+ script: npm run vscode:prepublish
+ - stage: release
+ script:
+ - npm install vsce
+ - vsce package
+ deploy:
+ - provider: releases
+ api_key: $GITHUB_OAUTH_TOKEN
+ file: "./doxdocgen-$TRAVIS_TAG.vsix"
+ skip_cleanup: true
+ on:
+ tags: true
+ - provider: script
+ script: vsce publish -p $VSMARKETPLACE_ACCESS_TOKEN
+ skip_cleanup: true
+ on:
+ tags: true \ No newline at end of file