Merge pull request #8796 from Mailaender/travis-docker-take2
Enabled the container based Travis CI architecture
This commit is contained in:
14
.travis.yml
14
.travis.yml
@@ -4,13 +4,21 @@
|
|||||||
language: csharp
|
language: csharp
|
||||||
mono: 3.12.0
|
mono: 3.12.0
|
||||||
|
|
||||||
# Don't use the container based infrastructure
|
# http://docs.travis-ci.com/user/migrating-from-legacy
|
||||||
sudo: true
|
sudo: false
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- thirdparty/download
|
- thirdparty/download
|
||||||
|
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- nsis
|
||||||
|
- nsis-common
|
||||||
|
- dpkg
|
||||||
|
- markdown
|
||||||
|
|
||||||
# Environment variables
|
# Environment variables
|
||||||
env:
|
env:
|
||||||
secure: "C0+Hlfa0YGErxUuWV00Tj6p45otC/D3YwYFuLpi2mj1rDFn/4dgh5WRngjvdDBVbXJ3duaZ78jPHWm1jr7vn2jqj9yETsCIK9psWd38ep/FEBM0SDr6MUD89OuXk/YyvxJAE+UXF6bXg7giey09g/CwBigjMW7ynET3wNAWPHPs="
|
secure: "C0+Hlfa0YGErxUuWV00Tj6p45otC/D3YwYFuLpi2mj1rDFn/4dgh5WRngjvdDBVbXJ3duaZ78jPHWm1jr7vn2jqj9yETsCIK9psWd38ep/FEBM0SDr6MUD89OuXk/YyvxJAE+UXF6bXg7giey09g/CwBigjMW7ynET3wNAWPHPs="
|
||||||
@@ -20,7 +28,6 @@ env:
|
|||||||
# Check source code with StyleCop
|
# Check source code with StyleCop
|
||||||
# call OpenRA to check for YAML errors
|
# call OpenRA to check for YAML errors
|
||||||
script:
|
script:
|
||||||
- sudo apt-get remove nuget # https://github.com/travis-ci/travis-ci/issues/3940
|
|
||||||
- travis_retry make all-dependencies
|
- travis_retry make all-dependencies
|
||||||
- make all
|
- make all
|
||||||
- make check
|
- make check
|
||||||
@@ -50,7 +57,6 @@ notifications:
|
|||||||
skip_join: true
|
skip_join: true
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- sudo apt-get install nsis nsis-common dpkg markdown
|
|
||||||
- export PATH=$PATH:$HOME/usr/bin
|
- export PATH=$PATH:$HOME/usr/bin
|
||||||
- DOTVERSION=`echo ${TRAVIS_TAG} | sed "s/-/\\./g"`
|
- DOTVERSION=`echo ${TRAVIS_TAG} | sed "s/-/\\./g"`
|
||||||
- cd packaging
|
- cd packaging
|
||||||
|
|||||||
@@ -64,9 +64,6 @@ after_test:
|
|||||||
- cp OpenRA.Game/OpenRA.ico .
|
- cp OpenRA.Game/OpenRA.ico .
|
||||||
- if not exist nsissetup.exe appveyor DownloadFile "http://downloads.sourceforge.net/project/nsis/NSIS 2/2.46/nsis-2.46-setup.exe" -FileName nsissetup.exe
|
- if not exist nsissetup.exe appveyor DownloadFile "http://downloads.sourceforge.net/project/nsis/NSIS 2/2.46/nsis-2.46-setup.exe" -FileName nsissetup.exe
|
||||||
- nsissetup /S /D=%NSIS_ROOT%
|
- nsissetup /S /D=%NSIS_ROOT%
|
||||||
- if not exist NsProcess.zip appveyor DownloadFile "http://nsis.sourceforge.net/mediawiki/images/archive/1/18/20140806212030!NsProcess.zip" -FileName NsProcess.zip
|
|
||||||
- 7z x NsProcess.zip -o%NSIS_ROOT% -y
|
|
||||||
- move /Y %NSIS_ROOT%\Plugin\nsProcess.dll %NSIS_ROOT%\Plugins\nsProcess.dll
|
|
||||||
- '%NSIS_ROOT%\makensis /DSRCDIR="%APPVEYOR_BUILD_FOLDER%" /DDEPSDIR="%APPVEYOR_BUILD_FOLDER%\thirdparty\download\windows" /V3 packaging/windows/OpenRA.nsi'
|
- '%NSIS_ROOT%\makensis /DSRCDIR="%APPVEYOR_BUILD_FOLDER%" /DDEPSDIR="%APPVEYOR_BUILD_FOLDER%\thirdparty\download\windows" /V3 packaging/windows/OpenRA.nsi'
|
||||||
- move /Y %APPVEYOR_BUILD_FOLDER%\packaging\windows\OpenRA.Setup.exe %APPVEYOR_BUILD_FOLDER%\OpenRA-%APPVEYOR_REPO_TAG_NAME%.exe
|
- move /Y %APPVEYOR_BUILD_FOLDER%\packaging\windows\OpenRA.Setup.exe %APPVEYOR_BUILD_FOLDER%\OpenRA-%APPVEYOR_REPO_TAG_NAME%.exe
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
!include "MUI2.nsh"
|
!include "MUI2.nsh"
|
||||||
!include "FileFunc.nsh"
|
!include "FileFunc.nsh"
|
||||||
!include "WordFunc.nsh"
|
!include "WordFunc.nsh"
|
||||||
!include "nsProcess.nsh"
|
|
||||||
|
|
||||||
Name "OpenRA"
|
Name "OpenRA"
|
||||||
OutFile "OpenRA.Setup.exe"
|
OutFile "OpenRA.Setup.exe"
|
||||||
@@ -236,17 +235,7 @@ FunctionEnd
|
|||||||
!insertmacro Clean "un."
|
!insertmacro Clean "un."
|
||||||
|
|
||||||
Section "Uninstall"
|
Section "Uninstall"
|
||||||
${nsProcess::FindProcess} "OpenRA.Game.exe" $R0
|
|
||||||
IntCmp $R0 0 gameRunning
|
|
||||||
${nsProcess::FindProcess} "OpenRA.exe" $R0
|
|
||||||
IntCmp $R0 0 gameRunning
|
|
||||||
${nsProcess::Unload}
|
|
||||||
Call un.Clean
|
Call un.Clean
|
||||||
Goto end
|
|
||||||
gameRunning:
|
|
||||||
MessageBox MB_OK|MB_ICONEXCLAMATION "OpenRA is running. Please close it first" /SD IDOK
|
|
||||||
abort
|
|
||||||
end:
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
;***************************
|
;***************************
|
||||||
|
|||||||
@@ -6,13 +6,6 @@ SRCDIR="$3"
|
|||||||
OUTPUTDIR="$4"
|
OUTPUTDIR="$4"
|
||||||
|
|
||||||
if [ -x /usr/bin/makensis ]; then
|
if [ -x /usr/bin/makensis ]; then
|
||||||
pushd "$SRCDIR" >/dev/null
|
|
||||||
popd >/dev/null
|
|
||||||
if [[ ! -f /usr/share/nsis/Include/nsProcess.nsh && ! -f /usr/share/nsis/Plugin/nsProcess.dll ]]; then
|
|
||||||
echo "Installing NsProcess NSIS plugin in /usr/share/nsis"
|
|
||||||
sudo unzip -qq -o ${SRCDIR}/thirdparty/download/NsProcess.zip 'Include/*' -d /usr/share/nsis
|
|
||||||
sudo unzip -qq -j -o ${SRCDIR}/thirdparty/download/NsProcess.zip 'Plugin/*' -d /usr/share/nsis/Plugins
|
|
||||||
fi
|
|
||||||
echo "Building Windows setup.exe"
|
echo "Building Windows setup.exe"
|
||||||
makensis -V2 -DSRCDIR="$BUILTDIR" -DDEPSDIR="${SRCDIR}/thirdparty/download/windows" OpenRA.nsi
|
makensis -V2 -DSRCDIR="$BUILTDIR" -DDEPSDIR="${SRCDIR}/thirdparty/download/windows" OpenRA.nsi
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
|||||||
7
thirdparty/fetch-thirdparty-deps.sh
vendored
7
thirdparty/fetch-thirdparty-deps.sh
vendored
@@ -13,15 +13,16 @@ download_dir="${0%/*}/download"
|
|||||||
mkdir -p "${download_dir}"
|
mkdir -p "${download_dir}"
|
||||||
cd "${download_dir}"
|
cd "${download_dir}"
|
||||||
|
|
||||||
if which nuget >/dev/null 2>&1; then
|
# https://github.com/travis-ci/travis-ci/issues/3940
|
||||||
|
if [ ! $TRAVIS ] && which nuget >/dev/null 2>&1; then
|
||||||
get()
|
get()
|
||||||
{
|
{
|
||||||
nuget install $1 -Version $2 -ExcludeVersion
|
nuget install "$1" -Version "$2" -ExcludeVersion
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
get()
|
get()
|
||||||
{
|
{
|
||||||
../noget.sh $1 $2
|
../noget.sh "$1" "$2"
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user