Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenVolumeMesh
OpenVolumeMesh
Commits
8e255356
Commit
8e255356
authored
Dec 01, 2015
by
Jan Möbius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added ci jobs for OpenVolumemesh
parent
b9ad5135
Pipeline
#197
failed with stage
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
193 additions
and
0 deletions
+193
-0
.gitlab-ci.yml
.gitlab-ci.yml
+29
-0
CI/ci-linux.sh
CI/ci-linux.sh
+86
-0
CI/ci-mac.sh
CI/ci-mac.sh
+78
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
8e255356
gcc-c++11
:
script
:
"
CI/ci-linux.sh
gcc
C++11"
tags
:
-
Linux
clang-c++11
:
script
:
"
CI/ci-linux.sh
clang
C++11"
tags
:
-
Linux
gcc-c++98
:
script
:
"
CI/ci-linux.sh
gcc
C++98"
tags
:
-
Linux
clang-c++98
:
script
:
"
CI/ci-linux.sh
clang
C++98"
tags
:
-
Linux
macos-c++11
:
script
:
"
CI/ci-mac.sh
C++11"
tags
:
-
Apple
macos-c++98
:
script
:
"
CI/ci-mac.sh
C++98"
tags
:
-
Apple
CI/ci-linux.sh
0 → 100755
View file @
8e255356
#!/bin/bash
COMPILER
=
$1
LANGUAGE
=
$2
# Exit script on any error
set
-e
OPTIONS
=
""
BUILDPATH
=
""
if
[
"
$COMPILER
"
==
"gcc"
]
;
then
echo
"Building with GCC"
;
BUILDPATH
=
"gcc"
elif
[
"
$COMPILER
"
==
"clang"
]
;
then
OPTIONS
=
"
$OPTIONS
-DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang"
echo
"Building with CLANG"
;
BUILDPATH
=
"clang"
fi
if
[
"
$LANGUAGE
"
==
"C++98"
]
;
then
echo
"Building with C++98"
;
BUILDPATH
=
"
$BUILDPATH
-cpp98"
elif
[
"
$LANGUAGE
"
==
"C++11"
]
;
then
echo
"Building with C++11"
;
OPTIONS
=
"
$OPTIONS
-DCMAKE_CXX_FLAGS='-std=c++11' "
BUILDPATH
=
"
$BUILDPATH
-cpp11"
fi
#########################################
# Make release build folder
if
[
!
-d
build-release-
$BUILDPATH
]
;
then
mkdir
build-release-
$BUILDPATH
fi
cd
build-release-
$BUILDPATH
cmake
-DCMAKE_BUILD_TYPE
=
Release
-DSTL_VECTOR_CHECKS
=
ON
$OPTIONS
../
#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-
$BUILDPATH
]
;
then
mkdir
build-debug-
$BUILDPATH
fi
cd
build-debug-
$BUILDPATH
cmake
-DCMAKE_BUILD_TYPE
=
Debug
-DSTL_VECTOR_CHECKS
=
ON
$OPTIONS
../
#build the unit tests
make unittests
#########################################
# Run Debug Unittests
#########################################
cd
Unittests
# Run the unittests
./unittests
--gtest_color
=
yes
--gtest_output
=
xml
CI/ci-mac.sh
0 → 100755
View file @
8e255356
#!/bin/bash
#Exit on any error
set
-e
LANGUAGE
=
$1
PATH
=
$PATH
:/opt/local/bin
export
PATH
OPTIONS
=
""
if
[
"
$LANGUAGE
"
==
"C++98"
]
;
then
echo
"Building with C++98"
;
elif
[
"
$LANGUAGE
"
==
"C++11"
]
;
then
echo
"Building with C++11"
;
OPTIONS
=
"
$OPTIONS
-DCMAKE_CXX_FLAGS='-std=c++11' "
fi
#########################################
# Build release version
#########################################
if
[
!
-d
build-release
]
;
then
mkdir
build-release
fi
cd
build-release
cmake
-DCMAKE_BUILD_TYPE
=
Release
-DSTL_VECTOR_CHECKS
=
ON
$OPTIONS
../
#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
-DSTL_VECTOR_CHECKS
=
ON
$OPTIONS
../
#build it
make
#build the unit tests
make unittests
#########################################
# Run Debug Unittests
#########################################
cd
Unittests
# Run the unittests
./unittests
--gtest_color
=
yes
--gtest_output
=
xml
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment