summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2017-10-06 22:56:39 +0200
committerChristoph Schlosser <christoph@linux.com>2017-10-07 15:12:39 +0200
commitc2679dd6caf916ff52511e78505107e4a95462a5 (patch)
tree388be07228497a9992a42e353ca094ff573db7f2 /.travis.yml
parentecdd8939344f0cc85c064d0be616b950f144702c (diff)
downloaddoxdocgen-c2679dd6caf916ff52511e78505107e4a95462a5.tar.gz
Deploy from travis
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