fix testing test, remove trusty

This commit is contained in:
Jay Lee
2020-03-29 19:43:34 -04:00
parent 615d571aef
commit 68745703f8
3 changed files with 5 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
if [ "$TRAVIS_JOB_NAME" == *"Testing" ]; then
if [[ "$TRAVIS_JOB_NAME" == *"Testing" ]]; then
export python="python"
export pip="pip"
echo "Travis setup Python $TRAVIS_PYTHON_VERSION"
@@ -91,7 +91,7 @@ else
python=~/python/bin/python3
pip=~/python/bin/pip3
if [ "${dist}" == "trusty" ]; then
if ([ "${dist}" == "trusty" ] || [ "${dist}" == "xenial" ]); then
echo "Installing deps for StaticX..."
if [ ! -d patchelf-$PATCHELF_VERSION ]; then
echo "Downloading PatchELF $PATCHELF_VERSION"

View File

@@ -1,5 +1,5 @@
cd src
if [ "$VMTYPE" == "test" ]; then
if [[ "$TRAVIS_JOB_NAME" == *"Testing" ]]; then
export gam="$python gam.py"
export gampath=$(readlink -e .)
else
@@ -18,8 +18,8 @@ else
du -h gam/gam
time $gam version extended
if [ "${dist}" == "trusty" ]; then
GAM_LEGACY_ARCHIVE=gam-${GAMVERSION}-${GAMOS}-${PLATFORM}-legacy.tar.xz
if ([ "${dist}" == "trusty" ] || [ "$(dist)" == "xenial" ]); then
GAM_LEGACY_ARCHIVE=gam-${GAMVERSION}-${GAMOS}-${PLATFORM}-${dist}legacy.tar.xz
$python -OO -m staticx gam/gam gam/gam-staticx
strip gam/gam-staticx
rm gam/gam