Permalink
Browse files

Update scripts to publish wild tests.

  • Loading branch information...
Andy Chu
Andy Chu committed Aug 23, 2018
1 parent 0264292 commit 507f5f96741b473666dd100bc98d0d4a8cb8653a
Showing with 9 additions and 2 deletions.
  1. +9 −2 test/publish.sh
View
@@ -47,19 +47,26 @@ unit() {
echo 'Hello from publish.sh'
}
compress-wild() {
local out="$PWD/_tmp/wild/wild.wwz"
pushd _tmp/wild/www
time zip -r -q $out . # recursive, quiet
ls -l $out
}
# NOTE: Have to copy the web/ dir too? For testing, use ./local.sh
# test-release-tree.
wild() {
local user=$1
local host=$2
local host=${2:-${user}.org} # default host looks like the name
local dest
dest="$(versioned-dest)" # no wild/ suffix, since it's wild.wwz/
ssh $user@$host mkdir -p $dest
rsync --archive --verbose \
_release/VERSION/test/wild.wwz $user@$host:$dest/
_tmp/wild/wild.wwz $user@$host:$dest/
echo "Visit http://$dest/wild.wwz/"
}

0 comments on commit 507f5f9

Please sign in to comment.