5.1: Travis Rework and macOS (#1870)
* Rework .travis.yml, build on macOS * Align AppVeyor building to Travis building
This commit is contained in:
committed by
Colby Klein
parent
568cd64d69
commit
75d9400cb0
+2
-6
@@ -36,12 +36,8 @@ before_build:
|
|||||||
cd Build
|
cd Build
|
||||||
|
|
||||||
cmake -G "Visual Studio 14 2015" -T "v140_xp" -DWITH_IRC_POST_HOOK=ON ..
|
cmake -G "Visual Studio 14 2015" -T "v140_xp" -DWITH_IRC_POST_HOOK=ON ..
|
||||||
build:
|
build_script:
|
||||||
project: C:\Repos\StepMania\Build\StepMania.sln
|
- cmake --build . --config %CONFIGURATION% --parallel 2
|
||||||
verbosity: normal
|
|
||||||
after_build:
|
|
||||||
- cmd: >-
|
|
||||||
msbuild "C:\Repos\StepMania\Build\StepMania.sln" /maxcpucount:4 /verbosity:normal
|
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: Build/*.exe
|
- path: Build/*.exe
|
||||||
type: exe
|
type: exe
|
||||||
|
|||||||
+41
-74
@@ -1,87 +1,54 @@
|
|||||||
language: cpp
|
language:
|
||||||
sudo: false
|
- cpp
|
||||||
git:
|
- c
|
||||||
submodules: false
|
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
irc: "chat.freenode.net#stepmania"
|
irc: "chat.freenode.net#stepmania"
|
||||||
|
|
||||||
|
os:
|
||||||
|
- linux
|
||||||
|
- osx
|
||||||
|
|
||||||
|
env:
|
||||||
|
- BUILD_TYPE=Release
|
||||||
|
|
||||||
|
compiler:
|
||||||
|
- gcc
|
||||||
|
- clang
|
||||||
|
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- libasound2-dev
|
||||||
|
- libglew-dev
|
||||||
|
- libmad0-dev
|
||||||
|
- libpulse-dev
|
||||||
|
- libva-dev
|
||||||
|
- libvorbis-dev
|
||||||
|
- libxinerama-dev
|
||||||
|
- libxrandr-dev
|
||||||
|
- yasm
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
exclude:
|
||||||
-
|
- os: osx
|
||||||
env: CXX_COMPILER=clang++-3.6 CC_COMPILER=clang-3.6 BUILD_TYPE=Release WITH_FFMPEG=OFF WITH_FFMPEG_JOBS=1
|
|
||||||
compiler: clang
|
|
||||||
addons: &clang36
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
- llvm-toolchain-precise-3.6
|
|
||||||
packages:
|
|
||||||
- nasm
|
|
||||||
- libudev-dev
|
|
||||||
- clang-3.6
|
|
||||||
- libmad0-dev
|
|
||||||
- libgtk2.0-dev
|
|
||||||
- binutils-dev
|
|
||||||
- libasound-dev
|
|
||||||
- libpulse-dev
|
|
||||||
- libjack-dev
|
|
||||||
- libc6-dev
|
|
||||||
- libogg-dev
|
|
||||||
- libvorbis-dev
|
|
||||||
- libxtst-dev
|
|
||||||
- libxrandr-dev
|
|
||||||
- libglew-dev
|
|
||||||
- libc++-dev
|
|
||||||
- libstdc++-4.8-dev
|
|
||||||
|
|
||||||
-
|
|
||||||
env: CXX_COMPILER=clang++-3.6 CC_COMPILER=clang-3.6 BUILD_TYPE=Release WITH_FFMPEG=ON WITH_FFMPEG_JOBS=1
|
|
||||||
compiler: clang
|
|
||||||
addons: *clang36
|
|
||||||
|
|
||||||
-
|
|
||||||
env: CXX_COMPILER=g++-5 CC_COMPILER=gcc-5 BUILD_TYPE=Release WITH_FFMPEG=OFF WITH_FFMPEG_JOBS=1
|
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
addons: &gcc5
|
|
||||||
apt:
|
before_install:
|
||||||
sources:
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
packages:
|
|
||||||
- nasm
|
|
||||||
- libudev-dev
|
|
||||||
- gcc-5
|
|
||||||
- g++-5
|
|
||||||
- libmad0-dev
|
|
||||||
- libgtk2.0-dev
|
|
||||||
- binutils-dev
|
|
||||||
- libasound-dev
|
|
||||||
- libpulse-dev
|
|
||||||
- libjack-dev
|
|
||||||
- libc6-dev
|
|
||||||
- libogg-dev
|
|
||||||
- libvorbis-dev
|
|
||||||
- libxtst-dev
|
|
||||||
- libxrandr-dev
|
|
||||||
- libglew-dev
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# Setup a directory for necessary dependencies.
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew upgrade cmake; fi
|
||||||
- cd ~
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install yasm; fi
|
||||||
- export DEPS_DIR="${PWD}/deps"
|
|
||||||
- mkdir ${DEPS_DIR}
|
|
||||||
- cd ${DEPS_DIR}
|
|
||||||
# Use the binary for cmake instead of building it now.
|
|
||||||
- export CMAKE_URL=https://cmake.org/files/v3.3/cmake-3.3.2-Linux-x86_64.tar.gz
|
|
||||||
- mkdir cmake
|
|
||||||
- wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
|
|
||||||
- export PATH=${PWD}/cmake/bin:${PATH}
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- cd ${TRAVIS_BUILD_DIR}
|
|
||||||
- cd Build
|
- cd Build
|
||||||
- cmake .. -DCMAKE_CXX_COMPILER=${CXX_COMPILER} -DCMAKE_C_COMPILER=${CC_COMPILER} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DWITH_FFMPEG=${WITH_FFMPEG} -DWITH_FFMPEG_JOBS=${WITH_FFMPEG_JOBS}
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export CMAKE_MAKE_PROGRAM="Unix Makefiles"; fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export CMAKE_MAKE_PROGRAM=Xcode; fi
|
||||||
|
- cmake .. -G"${CMAKE_MAKE_PROGRAM}"
|
||||||
|
-DCMAKE_BUILD_TYPE=${BUILD_TYPE}
|
||||||
|
-DCMAKE_C_COMPILER=${CC} -DCMAKE_CXX_COMPILER=${CXX}
|
||||||
|
-DWITH_FFMPEG_JOBS=2
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make -j2
|
- cmake --build . --parallel 2
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user