Commit 1b93d6c0 authored by Don Gagne's avatar Don Gagne

Speed up pull request OS X travis builds

parent 66e64f50
...@@ -4,8 +4,6 @@ language: cpp ...@@ -4,8 +4,6 @@ language: cpp
env: env:
global: global:
- CCACHE_CPP2=1
- CCACHE_DISABLE=1
- JOBS=4 - JOBS=4
- QT_FATAL_WARNINGS=1 - QT_FATAL_WARNINGS=1
- SHADOW_BUILD_DIR=/tmp/shadow_build_dir - SHADOW_BUILD_DIR=/tmp/shadow_build_dir
...@@ -28,7 +26,7 @@ matrix: ...@@ -28,7 +26,7 @@ matrix:
env: SPEC=android-g++ CONFIG=installer env: SPEC=android-g++ CONFIG=installer
sudo: false sudo: false
- os: osx - os: osx
osx_image: xcode8.3 osx_image: xcode9.2
env: SPEC=macx-clang CONFIG=installer env: SPEC=macx-clang CONFIG=installer
sudo: required sudo: required
# OSX builds pared back to installer only since travis sucks so bad we can't afford more than one' # OSX builds pared back to installer only since travis sucks so bad we can't afford more than one'
...@@ -50,7 +48,6 @@ android: ...@@ -50,7 +48,6 @@ android:
addons: addons:
apt: apt:
packages: packages:
- ccache
- espeak - espeak
- libespeak-dev - libespeak-dev
- libgstreamer-plugins-base1.0-dev - libgstreamer-plugins-base1.0-dev
...@@ -60,25 +57,12 @@ addons: ...@@ -60,25 +57,12 @@ addons:
- libudev-dev - libudev-dev
- wget - wget
cache:
directories:
- $HOME/.ccache
before_install: before_install:
# fetch entire git repo to properly determine the version # fetch entire git repo to properly determine the version
- if [ "${CONFIG}" = "installer" ]; then - if [ "${CONFIG}" = "installer" ]; then
cd ${TRAVIS_BUILD_DIR} && git fetch --unshallow && git fetch --all --tags; cd ${TRAVIS_BUILD_DIR} && git fetch --unshallow && git fetch --all --tags;
fi fi
# install ccache for osx/ios
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
wget --quiet https://s3.amazonaws.com/px4-travis/toolchain/macos/ccache &&
chmod +x ccache && sudo mv ccache /usr/local/bin;
fi
# setup ccache
#- ccache -M 500MB && ccache -z
# compile threads # compile threads
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
export JOBS=$((`cat /proc/cpuinfo | grep -c ^processor`+1)); export JOBS=$((`cat /proc/cpuinfo | grep -c ^processor`+1));
...@@ -113,28 +97,32 @@ install: ...@@ -113,28 +97,32 @@ install:
; ;
fi fi
# osx dependencies: qt, gstreamer, gstreamer-devel # osx dependencies: qt (master builds only: gstreamer, gstreamer-devel)
- if [ "${SPEC}" = "macx-clang" ]; then - if [ "${SPEC}" = "macx-clang" ]; then
wget --quiet https://s3-us-west-2.amazonaws.com/qgroundcontrol/dependencies/Qt5.9.3-clang_64-min.tar.bz2 && wget --quiet https://s3-us-west-2.amazonaws.com/qgroundcontrol/dependencies/Qt5.9.3-clang_64-min.tar.bz2 &&
tar jxf Qt5.9.3-clang_64-min.tar.bz2 -C /tmp tar jxf Qt5.9.3-clang_64-min.tar.bz2 -C /tmp
; ;
fi fi
- if [ "${SPEC}" = "macx-clang" ]; then - if [[ "${SPEC}" = "macx-clang" && "${TRAVIS_PULL_REQUEST}" = "false" ]]; then
wget --quiet https://s3-us-west-2.amazonaws.com/qgroundcontrol/dependencies/gstreamer-1.0-1.5.2-x86_64.pkg && wget --quiet https://s3-us-west-2.amazonaws.com/qgroundcontrol/dependencies/gstreamer-1.0-1.5.2-x86_64.pkg &&
sudo installer -verboseR -pkg gstreamer-1.0-1.5.2-x86_64.pkg -target / sudo installer -verboseR -pkg gstreamer-1.0-1.5.2-x86_64.pkg -target /
; ;
fi fi
- if [ "${SPEC}" = "macx-clang" ]; then - if [[ "${SPEC}" = "macx-clang" && "${TRAVIS_PULL_REQUEST}" = "false" ]]; then
wget --quiet https://s3-us-west-2.amazonaws.com/qgroundcontrol/dependencies/gstreamer-1.0-devel-1.5.2-x86_64.pkg && wget --quiet https://s3-us-west-2.amazonaws.com/qgroundcontrol/dependencies/gstreamer-1.0-devel-1.5.2-x86_64.pkg &&
sudo installer -verboseR -pkg gstreamer-1.0-devel-1.5.2-x86_64.pkg -target / sudo installer -verboseR -pkg gstreamer-1.0-devel-1.5.2-x86_64.pkg -target /
; ;
fi fi
- if [ "${SPEC}" = "macx-clang" ]; then - if [[ "${SPEC}" = "macx-clang" && "${TRAVIS_PULL_REQUEST}" = "false" ]]; then
wget --quiet https://s3-us-west-2.amazonaws.com/qgroundcontrol/dependencies/osx-gstreamer.tar.bz2 && wget --quiet https://s3-us-west-2.amazonaws.com/qgroundcontrol/dependencies/osx-gstreamer.tar.bz2 &&
sudo tar jxf osx-gstreamer.tar.bz2 -C /Library/Frameworks && sudo tar jxf osx-gstreamer.tar.bz2 -C /Library/Frameworks
;
fi
- if [ "${SPEC}" = "macx-clang" ]; then
export QT_DIR=Qt5.9-clang_64/5.9.3/clang_64 && export QT_DIR=Qt5.9-clang_64/5.9.3/clang_64 &&
export QT_QPA_PLATFORM_PLUGIN_PATH=/tmp/$QT_DIR/plugins && export QT_QPA_PLATFORM_PLUGIN_PATH=/tmp/$QT_DIR/plugins &&
export QML2_IMPORT_PATH=/tmp/$QT_DIR/qml && export QML2_IMPORT_PATH=/tmp/$QT_DIR/qml &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment