Add a release target for linux clang builds

This commit is contained in:
baldurk
2017-05-09 16:37:06 +01:00
parent c18b9147aa
commit 8f70762ed6
2 changed files with 12 additions and 1 deletions
+7
View File
@@ -19,6 +19,8 @@ env:
# LINUX_BUILD - set for linux builds
# APPLE_BUILD - set for OSX builds
# ANDROID_BUILD - set for android builds
#
# RELEASE_BUILD - set if a cmake should be set to a release build
matrix:
fast_finish: true
@@ -38,6 +40,11 @@ matrix:
sudo: required
env: LINUX_BUILD=1
compiler: clang
- os: linux
dist: trusty
sudo: required
env: LINUX_BUILD=1 RELEASE_BUILD=1
compiler: clang
- os: linux
dist: trusty
sudo: required
+5 -1
View File
@@ -15,5 +15,9 @@ fi
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
if [[ "$RELEASE_BUILD" == "1" ]]; then
cmake -DCMAKE_BUILD_TYPE=Release ..
else
cmake -DCMAKE_BUILD_TYPE=Debug ..
fi
make