1
0
mirror of synced 2025-03-21 07:33:52 +03:00

fix travis deploy

This commit is contained in:
Akolzin Dmitry 2020-03-05 11:07:59 +03:00
parent a877cf500c
commit 79401b25bc
2 changed files with 10 additions and 4 deletions

View File

@ -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
@ -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

View File

@ -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