Permalink
Browse files

Fix a bug in release automation introduced by test/gentoo.sh change.

  • Loading branch information...
Andy Chu
Andy Chu committed Feb 3, 2018
1 parent 3e434fd commit 0d5bff8967878229058792994af31d5520180877
Showing with 10 additions and 8 deletions.
  1. +3 −2 scripts/release.sh
  2. +7 −6 test/alpine.sh
View
@@ -121,8 +121,9 @@ build-and-test() {
# NOTE: Need test/alpine.sh download;extract;setup-dns,add-oil-build-deps, etc.
test/alpine.sh copy-tar oil
test/alpine.sh test-tar oil
# TODO: Factor out test/alpine.sh to test/chroot.sh
test/alpine.sh copy-tar '' oil
test/alpine.sh test-tar '' oil
}
_compressed-tarball() {
View
@@ -102,6 +102,9 @@ interactive() {
readonly OIL_VERSION=$(head -n 1 oil-version.txt)
# TODO: Factor these out into test/chroot.sh. You can test it in a Gentoo
# chroot too.
_copy-tar() {
local chroot_dir=${1:-$CHROOT_DIR}
local name=${2:-oil}
@@ -113,17 +116,15 @@ _copy-tar() {
}
copy-tar() { sudo $0 _copy-tar "$@"; }
# TODO: tarball needs to have a root directory like oil-$VERSION/.
_test-tar() {
local name=${1:-oil}
local version=${2:-$OIL_VERSION}
local chroot_dir=${1:-$CHROOT_DIR}
local name=${2:-oil}
local version=${3:-$OIL_VERSION}
local target=_bin/${name}.ovm
#local target=_bin/${name}.ovm-dbg
enter-chroot '' /bin/sh <<EOF
enter-chroot "$chroot_dir" /bin/sh <<EOF
set -e
cd src
tar --extract -z < $name-$version.tar.gz

0 comments on commit 0d5bff8

Please sign in to comment.