split travis to per-image profiles

This commit is contained in:
Jay Lee
2019-04-15 11:18:20 -04:00
parent 6198f7ace3
commit 8db6d1f4f7
13 changed files with 88 additions and 36 deletions

View File

@@ -22,29 +22,29 @@ matrix:
homebrew:
packages:
python@2
update: true
- os: windows
language: shell
env:
- GAMOS=windows
PLATFORM=x64
CINST_ARGS=""
- os: windows
language: shell
env:
- GAMOS=windows
- CINST_ARGS=--forcex86
- PLATFORM=x86
- os: osx
language: generic
osx_image: xcode9.2
env:
- GAMOS=macos
- PLATFORM=x64-sierra-testing
- PLATFORM=x86_64-sierra-testing
- TESTING=TRUE
addons:
homebrew:
packages:
python@2
update: true
- os: linux
language: python
dist: precise
@@ -57,41 +57,10 @@ matrix:
TESTING=TRUE
before_install:
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
powershell Install-WindowsFeature Net-Framework-Core;
cinst -y $CINST_ARGS python2;
export PATH=$PATH:/c/Python27/scripts;
cinst -y wixtoolset;
elif [[ "$PLATFORM" == "i686-precise-testing" ]]; then
dpkg --add-architecture i386;
apt install -y python:i386;
python -V;
fi
- curl https://bootstrap.pypa.io/get-pip.py | sudo python
- pip freeze > requirements.txt && pip install --user --upgrade -r requirements.txt && sudo rm requirements.txt
- pip install --user pyinstaller
- source src/travis/$TRAVIS_OS_NAME-$PLATFORM-before-install.sh
install:
- cd src
- python -m PyInstaller --clean -F --distpath=gam $GAMOS-gam.spec
- gam/gam version
- export GAMVERSION=`gam/gam version simple`
- cp LICENSE gam
- cp whatsnew.txt gam
- cp GamCommands.txt gam
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
cp gam-setup.bat gam;
GAM_ARCHIVE=gam-$GAMVERSION-$GAMOS-$PLATFORM.zip;
/c/Program\ Files/7-Zip/7z.exe a -tzip $GAM_ARCHIVE gam -xr!.svn;
mkdir gam-64;
cp -rf gam/* gam-64/;
/c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.11/bin/candle.exe -arch $PLATFORM gam.wxs;
/c/Program\ Files\ \(x86\)/Wix\ Toolset\ v3.11/bin/light.exe -ext /c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.11/bin/WixUIExtension.dll gam.wixobj -o gam-$GAMVERSION-$GAMOS-$PLATFORM.msi || true;
rm *.wixpdb;
else
GAM_ARCHIVE=gam-$GAMVERSION-$GAMOS-$PLATFORM.tar.xz;
tar cfJ $GAM_ARCHIVE gam/;
fi
- source src/travis/$TRAVIS_OS_NAME-$PLATFORM-install.sh
script:
- gam/gam version

View File

@@ -0,0 +1,9 @@
dpkg --add-architecture i386
apt update
apt install -y python:i386
python -V
pip install --upgrade pip
pip freeze > requirements.txt
pip install --upgrade -r requirements.txt
rm requirements.txt
pip install pyinstaller

View File

@@ -0,0 +1 @@
linux-x86_64-install.sh

View File

@@ -0,0 +1,5 @@
pip install --upgrade pip
pip freeze > requirements.txt
pip install --upgrade -r requirements.txt
rm requirements.txt
pip install pyinstaller

View File

@@ -0,0 +1,9 @@
cd src
pyinstaller --clean -F --distpath=gam $GAMOS-gam.spec
gam/gam version
export GAMVERSION=`gam/gam version simple`
cp LICENSE gam
cp whatsnew.txt gam
cp GamCommands.txt gam
GAM_ARCHIVE=gam-$GAMVERSION-$GAMOS-$PLATFORM.tar.xz
tar cfJ $GAM_ARCHIVE gam/

View File

@@ -0,0 +1,5 @@
pip install --upgrade pip
pip freeze > requirements.txt
pip install --upgrade -r requirements.txt
rm requirements.txt
pip install pyinstaller

View File

@@ -0,0 +1 @@
linux-x86_64-install.sh

View File

@@ -0,0 +1,6 @@
curl https://bootstrap.pypa.io/get-pip.py | sudo python
pip freeze > requirements.txt
sudo pip install --upgrade -r requirements.txt
rm requirements.txt
sudo pip install --upgrade altgraph
sudo pip install pyinstaller

View File

@@ -0,0 +1 @@
linux-x86_64-install.sh

View File

@@ -0,0 +1,9 @@
powershell Install-WindowsFeature Net-Framework-Core
cinst -y --forcex86 python2
export PATH=$PATH:/c/Python27/scripts
cinst -y wixtoolset
pip install --upgrade pip
pip freeze > requirements.txt
pip install --upgrade -r requirements.txt
rm requirements.txt
pip install pyinstaller

View File

@@ -0,0 +1,14 @@
cd src
pyinstaller --clean -F --distpath=gam $GAMOS-gam.spec
gam/gam version
export GAMVERSION=`gam/gam version simple`
cp LICENSE gam
cp GamCommands.txt gam
cp gam-setup.bat gam
GAM_ARCHIVE=gam-$GAMVERSION-$GAMOS-$PLATFORM.zip
/c/Program\ Files/7-Zip/7z.exe a -tzip $GAM_ARCHIVE gam -xr!.svn
mkdir gam-64
cp -rf gam/* gam-64/;
/c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.11/bin/candle.exe -arch x86 gam.wxs
/c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.11/bin/light.exe -ext /c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.11/bin/WixUIExtension.dll gam.wixobj -o gam-$GAMVERSION-$GAMOS-$PLATFORM.msi || true;
rm *.wixpdb

View File

@@ -0,0 +1,9 @@
powershell Install-WindowsFeature Net-Framework-Core
cinst -y $CINST_ARGS python2
export PATH=$PATH:/c/Python27/scripts
cinst -y wixtoolset
pip install --upgrade pip
pip freeze > requirements.txt
pip install --upgrade -r requirements.txt
rm requirements.txt
pip install pyinstaller

View File

@@ -0,0 +1,14 @@
cd src
pyinstaller --clean -F --distpath=gam $GAMOS-gam.spec
gam/gam version
export GAMVERSION=`gam/gam version simple`
cp LICENSE gam
cp GamCommands.txt gam
cp gam-setup.bat gam
GAM_ARCHIVE=gam-$GAMVERSION-$GAMOS-$PLATFORM.zip
/c/Program\ Files/7-Zip/7z.exe a -tzip $GAM_ARCHIVE gam -xr!.svn
mkdir gam-64
cp -rf gam/* gam-64/;
/c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.11/bin/candle.exe -arch x64 gam.wxs
/c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.11/bin/light.exe -ext /c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.11/bin/WixUIExtension.dll gam.wixobj -o gam-$GAMVERSION-$GAMOS-$PLATFORM.msi || true;
rm *.wixpdb