File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ deploy:
1313 tags : true
1414
1515after_deploy :
16- - cd ..
1716 - bash ./scripts/deploy_to_wp_svn.sh
1817
1918script : skip
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3+ set -x
4+
35if [[ -z " $TRAVIS " ]]; then
46 echo " Script is only to be run by Travis CI" 1>&2
57 exit 1
@@ -29,7 +31,7 @@ if [ $error == 0 ]; then
2931 echo " Tag already exists for version $VERSION , aborting deployment"
3032 exit 1
3133fi
32-
34+
3335cd " $PLUGIN_BUILDS_PATH "
3436
3537# Clean up any previous svn dir
@@ -77,6 +79,8 @@ rm -fR svn-trunk
7779mkdir svn/tags/$VERSION
7880rsync -r -p $PLUGIN /* svn/tags/$VERSION
7981
82+ cd $PLUGIN_BUILDS_PATH
83+
8084# Add new files to SVN
8185svn stat svn | grep ' ^?' | awk ' {print $2}' | xargs -I x svn add x@
8286# Remove deleted files from SVN
@@ -86,5 +90,5 @@ svn stat svn
8690# Commit to SVN
8791svn ci --no-auth-cache --username $WP_ORG_USERNAME --password $WP_ORG_PASSWORD svn -m " Deploy version $VERSION "
8892
89- # Remove SVN temp dir
93+ Remove SVN temp dir
9094rm -fR svn
You can’t perform that action at this time.
0 commit comments