commit
055f8a6f83
12
.travis.yml
12
.travis.yml
@ -10,6 +10,10 @@ stages:
|
|||||||
- github releases
|
- github releases
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- export LAST_TAG=`git describe --abbrev=0 --tags`
|
||||||
|
- export CURRENT_VERSION=v`cat VERSION`
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- nvm install 10
|
- nvm install 10
|
||||||
- make install
|
- make install
|
||||||
@ -257,8 +261,12 @@ jobs:
|
|||||||
condition: "$LAST_TAG != $CURRENT_VERSION"
|
condition: "$LAST_TAG != $CURRENT_VERSION"
|
||||||
if: branch = master AND type = push AND fork = false
|
if: branch = master AND type = push AND fork = false
|
||||||
- stage: deploy
|
- stage: deploy
|
||||||
|
before_install: skip
|
||||||
|
before_script: skip
|
||||||
|
script: make svn_clone
|
||||||
deploy:
|
deploy:
|
||||||
cleanup: false
|
cleanup: false
|
||||||
provider: script
|
provider: script
|
||||||
script: make
|
script: make svn_push
|
||||||
if: branch = master AND type = push AND fork = false
|
if: branch = master AND type = push AND fork = false
|
||||||
|
after_success: make remove_dir
|
2
Makefile
2
Makefile
@ -3,8 +3,6 @@ VERSION = `cat $(FILE)`
|
|||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
|
|
||||||
all: svn_clone svn_push remove_dir
|
|
||||||
|
|
||||||
svn_clone:
|
svn_clone:
|
||||||
mkdir /tmp/svn_plugin_dir
|
mkdir /tmp/svn_plugin_dir
|
||||||
svn co $(SVNREPOURL) /tmp/svn_plugin_dir --username $(USERNAME) --password $(PASSWORD) --no-auth-cache
|
svn co $(SVNREPOURL) /tmp/svn_plugin_dir --username $(USERNAME) --password $(PASSWORD) --no-auth-cache
|
||||||
|
Loading…
x
Reference in New Issue
Block a user