travis: Split build scripts
This commit is contained in:
parent
5beb61913b
commit
90480aade2
7 changed files with 59 additions and 53 deletions
24
.travis.yml
24
.travis.yml
|
@ -5,18 +5,18 @@ matrix:
|
||||||
- os: linux
|
- os: linux
|
||||||
sudo: required
|
sudo: required
|
||||||
dist: trusty
|
dist: trusty
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
packages:
|
||||||
|
- gcc-6
|
||||||
|
- g++-6
|
||||||
|
- lib32stdc++6 # For CMake
|
||||||
|
install: ./.travis/deps-x86_64-linux.sh
|
||||||
|
script: ./.travis/build-x86_64-linux.sh
|
||||||
- os: osx
|
- os: osx
|
||||||
sudo: false
|
sudo: false
|
||||||
osx_image: xcode7.3
|
osx_image: xcode7.3
|
||||||
|
install: ./.travis/deps-x86_64-macos.sh
|
||||||
addons:
|
script: ./.travis/build-x86_64-macos.sh
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
packages:
|
|
||||||
- gcc-6
|
|
||||||
- g++-6
|
|
||||||
- lib32stdc++6 # For CMake
|
|
||||||
|
|
||||||
install: ./.travis/deps.sh
|
|
||||||
script: ./.travis/build.sh
|
|
||||||
|
|
14
.travis/build-x86_64-linux.sh
Executable file
14
.travis/build-x86_64-linux.sh
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
export CC=gcc-6
|
||||||
|
export CXX=g++-6
|
||||||
|
export PKG_CONFIG_PATH=$HOME/.local/lib/pkgconfig:$PKG_CONFIG_PATH
|
||||||
|
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake .. -DDYNARMIC_USE_SYSTEM_BOOST=0 -DBoost_INCLUDE_DIRS=${PWD}/../externals/ext-boost -DCMAKE_BUILD_TYPE=Release
|
||||||
|
make -j4
|
||||||
|
|
||||||
|
ctest -VV -C Release
|
11
.travis/build-x86_64-macos.sh
Executable file
11
.travis/build-x86_64-macos.sh
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||||
|
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake .. -GXcode -DDYNARMIC_USE_SYSTEM_BOOST=0 -DBoost_INCLUDE_DIRS=${PWD}/../externals/ext-boost -DDYNARMIC_TESTS=0
|
||||||
|
xcodebuild -configuration Release
|
|
@ -1,26 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
set -x
|
|
||||||
|
|
||||||
cmake --version
|
|
||||||
|
|
||||||
if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then
|
|
||||||
export CC=gcc-6
|
|
||||||
export CXX=g++-6
|
|
||||||
export PKG_CONFIG_PATH=$HOME/.local/lib/pkgconfig:$PKG_CONFIG_PATH
|
|
||||||
|
|
||||||
mkdir build && cd build
|
|
||||||
cmake .. -DDYNARMIC_USE_SYSTEM_BOOST=0 -DBoost_INCLUDE_DIRS=${PWD}/../externals/ext-boost -DCMAKE_BUILD_TYPE=Release
|
|
||||||
make -j4
|
|
||||||
|
|
||||||
ctest -VV -C Release
|
|
||||||
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
|
||||||
set -o pipefail
|
|
||||||
|
|
||||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
|
||||||
|
|
||||||
mkdir build && cd build
|
|
||||||
cmake .. -GXcode -DDYNARMIC_USE_SYSTEM_BOOST=0 -DBoost_INCLUDE_DIRS=${PWD}/../externals/ext-boost -DDYNARMIC_TESTS=0
|
|
||||||
xcodebuild -configuration Release
|
|
||||||
fi
|
|
13
.travis/deps-x86_64-linux.sh
Executable file
13
.travis/deps-x86_64-linux.sh
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
# TODO: This isn't ideal.
|
||||||
|
cd externals
|
||||||
|
git clone https://github.com/citra-emu/ext-boost
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
mkdir -p $HOME/.local
|
||||||
|
curl -L https://cmake.org/files/v3.4/cmake-3.4.1-Linux-i386.tar.gz \
|
||||||
|
| tar -xz -C $HOME/.local --strip-components=1
|
9
.travis/deps-x86_64-macos.sh
Executable file
9
.travis/deps-x86_64-macos.sh
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
# TODO: This isn't ideal.
|
||||||
|
cd externals
|
||||||
|
git clone https://github.com/citra-emu/ext-boost
|
||||||
|
cd ..
|
|
@ -1,15 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
set -x
|
|
||||||
|
|
||||||
# TODO: This isn't ideal.
|
|
||||||
cd externals
|
|
||||||
git clone https://github.com/citra-emu/ext-boost
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then
|
|
||||||
mkdir -p $HOME/.local
|
|
||||||
curl -L https://cmake.org/files/v3.4/cmake-3.4.1-Linux-i386.tar.gz \
|
|
||||||
| tar -xz -C $HOME/.local --strip-components=1
|
|
||||||
fi
|
|
Loading…
Reference in a new issue