Skip to content

Commit

Permalink
Merge pull request #121 from iyzoer/master
Browse files Browse the repository at this point in the history
fix travis deploy
  • Loading branch information
gwinn authored Mar 5, 2020
2 parents 75ff952 + 889476f commit 055f8a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ stages:
- github releases
- deploy

before_install:
- export LAST_TAG=`git describe --abbrev=0 --tags`
- export CURRENT_VERSION=v`cat VERSION`

before_script:
- nvm install 10
- make install
Expand Down Expand Up @@ -257,8 +261,12 @@ jobs:
condition: "$LAST_TAG != $CURRENT_VERSION"
if: branch = master AND type = push AND fork = false
- stage: deploy
before_install: skip
before_script: skip
script: make svn_clone
deploy:
cleanup: false
provider: script
script: make
if: branch = master AND type = push AND fork = false
script: make svn_push
if: branch = master AND type = push AND fork = false
after_success: make remove_dir
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ VERSION = `cat $(FILE)`

.PHONY: test

all: svn_clone svn_push remove_dir

svn_clone:
mkdir /tmp/svn_plugin_dir
svn co $(SVNREPOURL) /tmp/svn_plugin_dir --username $(USERNAME) --password $(PASSWORD) --no-auth-cache
Expand Down

0 comments on commit 055f8a6

Please sign in to comment.