Add macOS release build on travis, for deployment

This commit is contained in:
baldurk
2019-03-05 14:01:37 +00:00
parent 095251cc59
commit 1a153e9c13
2 changed files with 17 additions and 5 deletions
+5 -1
View File
@@ -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
+12 -4
View File
@@ -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