diff --git a/.travis.yml b/.travis.yml index 882d0f83f..6be632422 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,6 +47,10 @@ matrix: osx_image: xcode9.4 env: APPLE_BUILD=1 compiler: clang + - os: osx + osx_image: xcode9.4 + env: APPLE_BUILD=1 RELEASE_BUILD=1 + compiler: clang # install dependencies install: @@ -62,4 +66,4 @@ deploy: on: repo: baldurk/renderdoc branch: v1.x - condition: $TRAVIS_OS_NAME = osx + condition: $TRAVIS_OS_NAME$RELEASE_BUILD = osx1 diff --git a/util/travis/osx_compile.sh b/util/travis/osx_compile.sh index 8395d42e9..d38306a44 100755 --- a/util/travis/osx_compile.sh +++ b/util/travis/osx_compile.sh @@ -2,12 +2,20 @@ mkdir build pushd build -cmake -DCMAKE_BUILD_TYPE=Debug .. +if [[ "$RELEASE_BUILD" == "1" ]]; then + cmake -DCMAKE_BUILD_TYPE=Release .. +else + cmake -DCMAKE_BUILD_TYPE=Debug .. +fi make -j2 popd # build echo "--- Running unit tests ---" -trap 'exit' ERR -./build/bin/renderdoccmd test unit -./build/bin/qrenderdoc.app/Contents/MacOS/qrenderdoc --unittest +if [[ "$RELEASE_BUILD" == "1" ]]; then + echo "Not running tests on release build" +else + trap 'exit' ERR + ./build/bin/renderdoccmd test unit + ./build/bin/qrenderdoc.app/Contents/MacOS/qrenderdoc --unittest +fi