Skip to content

Commit 2808889

Browse files
committed
Fix travis ci
1 parent f84f929 commit 2808889

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ deploy:
1313
tags: true
1414

1515
after_deploy:
16-
- cd ..
1716
- bash ./scripts/deploy_to_wp_svn.sh
1817

1918
script: skip

scripts/deploy_to_wp_svn.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
set -x
4+
35
if [[ -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
3133
fi
32-
34+
3335
cd "$PLUGIN_BUILDS_PATH"
3436

3537
# Clean up any previous svn dir
@@ -77,6 +79,8 @@ rm -fR svn-trunk
7779
mkdir svn/tags/$VERSION
7880
rsync -r -p $PLUGIN/* svn/tags/$VERSION
7981

82+
cd $PLUGIN_BUILDS_PATH
83+
8084
# Add new files to SVN
8185
svn 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
8791
svn 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
9094
rm -fR svn

0 commit comments

Comments
 (0)