1
0
mirror of synced 2025-01-31 07:11:42 +03:00
Akolzin Dmitry b5b6419ca4 v3.0.0 (#60)
* Tests
* Travis
* Deployment script
2018-04-27 11:19:02 +03:00

20 lines
690 B
Makefile

FILE = $(TRAVIS_BUILD_DIR)/VERSION
VERSION = `cat $(FILE)`
all: svn_clone prepare svn_commit remove_dir
svn_clone:
mkdir /tmp/svn_plugin_dir
svn co $(SVNREPOURL) /tmp/svn_plugin_dir --username $(USERNAME) --password $(PASSWORD) --no-auth-cache
prepare: /tmp/svn_plugin_dir
svn copy /tmp/svn_plugin_dir/trunk /tmp/svn_plugin_dir/tags/$(VERSION) --username $(USERNAME) --password $(PASSWORD) --no-auth-cache
rm -rf /tmp/svn_plugin_dir/trunk/*
cp -R $(TRAVIS_BUILD_DIR)/src/* /tmp/svn_plugin_dir/trunk
svn_commit: /tmp/svn_plugin_dir/tags
svn ci /tmp/svn_plugin_dir -m $(VERSION) --username $(USERNAME) --password $(PASSWORD) --no-auth-cache
remove_dir:
rm -rf /tmp/svn_plugin_dir