From 6d6b02680cd8a9ce76f29914963098e417ccb50c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 11 Nov 2015 14:30:00 +0100 Subject: [PATCH] First version for mac gitlab-ci integration --- .gitlab-ci.yml | 2 ++ CI/ci-mac.sh | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100755 CI/ci-mac.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 38499863..2e16563b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,3 +10,5 @@ gcc-c++98: clang-c++98: script: "CI/ci-linux.sh clang C++98" +macos: + script: "CI/ci-mac.sh" diff --git a/CI/ci-mac.sh b/CI/ci-mac.sh new file mode 100755 index 00000000..c04a534c --- /dev/null +++ b/CI/ci-mac.sh @@ -0,0 +1,64 @@ +#!/bin/bash + +if [ $(uname) == Darwin ]; then + PATH=$PATH:/opt/local/bin + export PATH +fi + +######################################### +# Build release version +######################################### + +if [ ! -d build-release ]; then + mkdir build-release +fi + +cd build-release + +cmake -DCMAKE_BUILD_TYPE=Release -DOPENMESH_BUILD_UNIT_TESTS=TRUE ../ + +#build it +make + +#build the unit tests +make unittests + + +######################################### +# Run Release Unittests +######################################### +cd Unittests + +#execute tests +./unittests --gtest_color=yes --gtest_output=xml + +cd .. +cd .. + + +######################################### +# Build Debug version and Unittests +######################################### + +if [ ! -d build-debug ]; then + mkdir build-debug +fi + +cd build-debug + +cmake -DCMAKE_BUILD_TYPE=Debug -DOPENMESH_BUILD_UNIT_TESTS=TRUE ../ + +#build the unit tests +make unittests + + +######################################### +# Run Debug Unittests +######################################### + +cd Unittests + +# Run the unittests +./unittests --gtest_color=yes --gtest_output=xml + +