mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
more travis cleanup
This commit is contained in:
@@ -61,22 +61,18 @@ jobs:
|
|||||||
filter_secrets: false
|
filter_secrets: false
|
||||||
- os: linux
|
- os: linux
|
||||||
name: "Python 3.6 Source Testing"
|
name: "Python 3.6 Source Testing"
|
||||||
dist: bionic
|
|
||||||
language: python
|
language: python
|
||||||
python: 3.6
|
python: 3.6
|
||||||
- os: linux
|
- os: linux
|
||||||
name: "Python 3.7 Source Testing"
|
name: "Python 3.7 Source Testing"
|
||||||
dist: bionic
|
|
||||||
language: python
|
language: python
|
||||||
python: 3.7
|
python: 3.7
|
||||||
- os: linux
|
- os: linux
|
||||||
name: "Python nightly Source Testing"
|
name: "Python nightly Source Testing"
|
||||||
dist: bionic
|
|
||||||
language: python
|
language: python
|
||||||
python: nightly
|
python: nightly
|
||||||
- os: linux
|
- os: linux
|
||||||
name: "Python PyPi Source Testing"
|
name: "Python PyPi Source Testing"
|
||||||
dist: xenial
|
|
||||||
language: python
|
language: python
|
||||||
python: pypy3
|
python: pypy3
|
||||||
- os: osx
|
- os: osx
|
||||||
|
|||||||
@@ -5,8 +5,7 @@ if [[ "$TRAVIS_JOB_NAME" == *"Testing" ]]; then
|
|||||||
echo "running tests with this version"
|
echo "running tests with this version"
|
||||||
else
|
else
|
||||||
export whereibelong=$(pwd)
|
export whereibelong=$(pwd)
|
||||||
export dist=$(lsb_release --codename --short)
|
echo "We are running on Ubuntu $TRAVIS_DSIT $PLATFORM"
|
||||||
echo "We are running on Ubuntu $dist $PLATFORM"
|
|
||||||
export LD_LIBRARY_PATH=~/ssl/lib:~/python/lib
|
export LD_LIBRARY_PATH=~/ssl/lib:~/python/lib
|
||||||
cpucount=$(nproc --all)
|
cpucount=$(nproc --all)
|
||||||
echo "This device has $cpucount CPUs for compiling..."
|
echo "This device has $cpucount CPUs for compiling..."
|
||||||
@@ -42,7 +41,7 @@ else
|
|||||||
echo "Installing deps for python3"
|
echo "Installing deps for python3"
|
||||||
sudo cp -v /etc/apt/sources.list /tmp
|
sudo cp -v /etc/apt/sources.list /tmp
|
||||||
sudo chmod a+rwx /tmp/sources.list
|
sudo chmod a+rwx /tmp/sources.list
|
||||||
echo "deb-src http://archive.ubuntu.com/ubuntu/ $dist main" >> /tmp/sources.list
|
echo "deb-src http://archive.ubuntu.com/ubuntu/ $TRAVIS_DIST main" >> /tmp/sources.list
|
||||||
sudo cp -v /tmp/sources.list /etc/apt
|
sudo cp -v /tmp/sources.list /etc/apt
|
||||||
sudo apt-get -qq --yes update > /dev/null
|
sudo apt-get -qq --yes update > /dev/null
|
||||||
sudo apt-get -qq --yes build-dep python3 > /dev/null
|
sudo apt-get -qq --yes build-dep python3 > /dev/null
|
||||||
@@ -91,7 +90,7 @@ else
|
|||||||
python=~/python/bin/python3
|
python=~/python/bin/python3
|
||||||
pip=~/python/bin/pip3
|
pip=~/python/bin/pip3
|
||||||
|
|
||||||
if ([ "${dist}" == "trusty" ] || [ "${dist}" == "xenial" ]); then
|
if ([ "${TRAVIS_DIST}" == "trusty" ] || [ "${TRAVIS_DIST}" == "xenial" ]) && [ "${PLATFORM}" == "x86_64" ]; then
|
||||||
echo "Installing deps for StaticX..."
|
echo "Installing deps for StaticX..."
|
||||||
if [ ! -d patchelf-$PATCHELF_VERSION ]; then
|
if [ ! -d patchelf-$PATCHELF_VERSION ]; then
|
||||||
echo "Downloading PatchELF $PATCHELF_VERSION"
|
echo "Downloading PatchELF $PATCHELF_VERSION"
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ else
|
|||||||
du -h gam/gam
|
du -h gam/gam
|
||||||
time $gam version extended
|
time $gam version extended
|
||||||
|
|
||||||
if ([ "${dist}" == "trusty" ] || [ "${dist}" == "xenial" ]); then
|
if ([ "${TRAVIS_DIST}" == "trusty" ] || [ "${TRAVIS_DIST}" == "xenial" ]) && [ "${PLATFORM}" == "x86_64" ]; then
|
||||||
GAM_LEGACY_ARCHIVE=gam-${GAMVERSION}-${GAMOS}-${PLATFORM}-legacy.tar.xz
|
GAM_LEGACY_ARCHIVE=gam-${GAMVERSION}-${GAMOS}-${PLATFORM}-legacy.tar.xz
|
||||||
$python -OO -m staticx gam/gam gam/gam-staticx
|
$python -OO -m staticx gam/gam gam/gam-staticx
|
||||||
strip gam/gam-staticx
|
strip gam/gam-staticx
|
||||||
|
|||||||
Reference in New Issue
Block a user