diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..8d5da8f66 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,62 @@ +# Build matrix / environment variables are explained on: +# http://about.travis-ci.org/docs/user/build-configuration/ +# This file can be validated on: http://lint.travis-ci.org/ + + +language: cpp + + +matrix: + include: + - os: linux + dist: xenial + compiler: gcc + env: GCC=9 CC=gcc-9 CXX=g++-9 + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - gcc-9 + - g++-9 + update: true + + + - os: osx + osx_image: xcode11 + compiler: clang + addons: + homebrew: + update: true + + +install: + - | + old_cwd=$(pwd) + cd ~ + + if [[ "$HOST" == macosx-* ]]; then + curl -O https://www.libsdl.org/release/SDL2-2.0.10.tar.gz + tar xzf SDL2-2.0.10.tar.gz + cd SDL2-2.0.10/Xcode/SDL + sed -i -e 's/@rpath//g' SDL.xcodeproj/project.pbxproj + xcodebuild -configuration Release + mkdir -p ~/Library/Frameworks/ + ln -s `pwd`/build/Release/SDL2.framework ~/Library/Frameworks/ + else + hg clone https://hg.libsdl.org/SDL SDL + cd SDL + mkdir build + cd build + ../configure + make + sudo make install + fi + + cd $old_cwd + + +script: + - | + ./configure + make all diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 000000000..a087f4e42 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,32 @@ +image: Visual Studio 2019 + +shallow_clone: true + + +environment: + matrix: + - Platform: x64 + - Platform: Win32 + + Configuration: Release + + SDL2_version: 2.0.10 + + +install: + - cmd: | + curl -o "C:\SDL2-devel.zip" https://www.libsdl.org/release/SDL2-devel-2.0.10-VC.zip + 7z x "C:\SDL2-devel.zip" -o"C:\" + xcopy /S "C:\SDL2-%SDL2_version%\include" src\common + + if %Platform%==x64 xcopy /S "C:\SDL2-%SDL2_version%\lib\x64" src\windows + if %Platform%==Win32 xcopy /S "C:\SDL2-%SDL2_version%\lib\x86" src\windows + + +build_script: + - cmd: | + msbuild src\windows\Stella.sln + + +artifacts: + - path: '**\stella.exe'