From fa64309aace2b782029ef599d20e8e0f1dd72a83 Mon Sep 17 00:00:00 2001 From: James Date: Fri, 4 Aug 2017 20:11:47 +1000 Subject: Travis: Use Docker to build for Linux --- .travis-build.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to '.travis-build.sh') diff --git a/.travis-build.sh b/.travis-build.sh index df6e236b6..64f5aed94 100755 --- a/.travis-build.sh +++ b/.travis-build.sh @@ -44,15 +44,7 @@ fi #if OS is linux or is not set 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 .. - make -j4 - - ctest -VV -C Release + docker run -v $(pwd):/citra ubuntu:16.04 /bin/bash /citra/.travis-build-docker.sh elif [ "$TRAVIS_OS_NAME" = "osx" ]; then set -o pipefail -- cgit v1.2.3 From 0c55bed0477fc42dd95b512cbce741723a8878a6 Mon Sep 17 00:00:00 2001 From: B3n30 Date: Sat, 9 Sep 2017 21:21:53 +0200 Subject: trvis_OSX: build with system curl --- .travis-build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.travis-build.sh') diff --git a/.travis-build.sh b/.travis-build.sh index 64f5aed94..bb4e6fc47 100755 --- a/.travis-build.sh +++ b/.travis-build.sh @@ -52,7 +52,7 @@ elif [ "$TRAVIS_OS_NAME" = "osx" ]; then export Qt5_DIR=$(brew --prefix)/opt/qt5 mkdir build && cd build - cmake .. -GXcode + cmake .. -DUSE_SYSTEM_CURL=ON -GXcode xcodebuild -configuration Release ctest -VV -C Release -- cgit v1.2.3 From 29a6fbacd5cfb4ca91466ddb099cb0cc3c3c4632 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Mon, 2 Oct 2017 09:43:30 +0100 Subject: macOS: Build x86_64h slice This commit produces a fat-binary with two slices. The x86_64 slice is for all x64 systems, and the x86_64h slice targets x64 systems starting with Haswell. The latter allows the compiler to use newer instructions that are not available on older microarchitectures. --- .travis-build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.travis-build.sh') diff --git a/.travis-build.sh b/.travis-build.sh index bb4e6fc47..fc5a5f8b2 100755 --- a/.travis-build.sh +++ b/.travis-build.sh @@ -52,8 +52,8 @@ elif [ "$TRAVIS_OS_NAME" = "osx" ]; then export Qt5_DIR=$(brew --prefix)/opt/qt5 mkdir build && cd build - cmake .. -DUSE_SYSTEM_CURL=ON -GXcode - xcodebuild -configuration Release + cmake .. -DUSE_SYSTEM_CURL=ON -DCMAKE_OSX_ARCHITECTURES="x86_64;x86_64h" -DCMAKE_BUILD_TYPE=Release + make -j4 ctest -VV -C Release fi -- cgit v1.2.3 From 15a2388a33b1306dcaf16b62432c7a13b40ca2a3 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Fri, 6 Oct 2017 20:58:48 +0100 Subject: travis: Split build scripts for different platforms This commit also separates clang-format from the linux build, closing #2702. --- .travis-build.sh | 59 -------------------------------------------------------- 1 file changed, 59 deletions(-) delete mode 100755 .travis-build.sh (limited to '.travis-build.sh') diff --git a/.travis-build.sh b/.travis-build.sh deleted file mode 100755 index fc5a5f8b2..000000000 --- a/.travis-build.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash - -set -e -set -x - -if grep -nr '\s$' src *.yml *.txt *.md Doxyfile .gitignore .gitmodules .travis* dist/*.desktop \ - dist/*.svg dist/*.xml; then - echo Trailing whitespace found, aborting - exit 1 -fi - -# Only run clang-format on Linux because we don't have 4.0 on OS X images -if [ "$TRAVIS_OS_NAME" = "linux" ]; then - # Default clang-format points to default 3.5 version one - CLANG_FORMAT=clang-format-3.9 - $CLANG_FORMAT --version - - if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then - # Get list of every file modified in this pull request - files_to_lint="$(git diff --name-only --diff-filter=ACMRTUXB $TRAVIS_COMMIT_RANGE | grep '^src/[^.]*[.]\(cpp\|h\)$' || true)" - else - # Check everything for branch pushes - files_to_lint="$(find src/ -name '*.cpp' -or -name '*.h')" - fi - - # Turn off tracing for this because it's too verbose - set +x - - for f in $files_to_lint; do - d=$(diff -u "$f" <($CLANG_FORMAT "$f") || true) - if ! [ -z "$d" ]; then - echo "!!! $f not compliant to coding style, here is the fix:" - echo "$d" - fail=1 - fi - done - - set -x - - if [ "$fail" = 1 ]; then - exit 1 - fi -fi - -#if OS is linux or is not set -if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then - docker run -v $(pwd):/citra ubuntu:16.04 /bin/bash /citra/.travis-build-docker.sh -elif [ "$TRAVIS_OS_NAME" = "osx" ]; then - set -o pipefail - - export MACOSX_DEPLOYMENT_TARGET=10.9 - export Qt5_DIR=$(brew --prefix)/opt/qt5 - - mkdir build && cd build - cmake .. -DUSE_SYSTEM_CURL=ON -DCMAKE_OSX_ARCHITECTURES="x86_64;x86_64h" -DCMAKE_BUILD_TYPE=Release - make -j4 - - ctest -VV -C Release -fi -- cgit v1.2.3