Permalink
Browse files
Fix a bug in release automation introduced by test/gentoo.sh change.
- Loading branch information...
Showing
with
10 additions
and
8 deletions.
-
+3
−2
scripts/release.sh
-
+7
−6
test/alpine.sh
|
|
@@ -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() {
|
|
|
|
|
|
@@ -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