Permalink
Browse files
Update scripts to publish wild tests.
- Loading branch information...
Showing
with
9 additions
and
2 deletions.
-
+9
−2
test/publish.sh
|
|
@@ -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