Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libHexEx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HexEx
libHexEx
Commits
285c4933
Commit
285c4933
authored
5 years ago
by
Max Lyon
Browse files
Options
Downloads
Patches
Plain Diff
add unittests on mac
parent
077f8e77
No related branches found
No related tags found
1 merge request
!6
CI
Pipeline
#11534
passed
5 years ago
Stage: build
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+11
-0
11 additions, 0 deletions
.gitlab-ci.yml
CI/ci-linux.sh
+7
-7
7 additions, 7 deletions
CI/ci-linux.sh
CI/ci-mac.sh
+128
-0
128 additions, 0 deletions
CI/ci-mac.sh
with
146 additions
and
7 deletions
.gitlab-ci.yml
+
11
−
0
View file @
285c4933
...
@@ -25,3 +25,14 @@ clang-c++14:
...
@@ -25,3 +25,14 @@ clang-c++14:
tags
:
tags
:
-
Linux
-
Linux
macos-c++11
:
stage
:
build
script
:
"
CI/ci-mac.sh
C++11"
tags
:
-
Apple
macos-c++98
:
stage
:
build
script
:
"
CI/ci-mac.sh
C++14"
tags
:
-
Apple
This diff is collapsed.
Click to expand it.
CI/ci-linux.sh
+
7
−
7
View file @
285c4933
...
@@ -50,7 +50,7 @@ WARNING='\033[0;93m'
...
@@ -50,7 +50,7 @@ WARNING='\033[0;93m'
if
[
!
-d
OpenVolueMesh
]
;
then
if
[
!
-d
OpenVolueMesh
]
;
then
git clone https://graphics.rwth-aachen.de:9000/OpenVolumeMesh/OpenVolumeMesh
git clone https://graphics.rwth-aachen.de:9000/OpenVolumeMesh/OpenVolumeMesh
else
else
cd
OpenVolueMesh
cd
OpenVolu
m
eMesh
git pull
git pull
cd
..
cd
..
fi
fi
...
@@ -79,11 +79,11 @@ echo "======================================================================"
...
@@ -79,11 +79,11 @@ echo "======================================================================"
echo
-e
"
${
NC
}
"
echo
-e
"
${
NC
}
"
if
[
!
-d
build-release-
$BUILDPATH
-Vector-Checks
]
;
then
if
[
!
-d
build-release-
$BUILDPATH
]
;
then
mkdir
build-release-
$BUILDPATH
-Vector-Checks
mkdir
build-release-
$BUILDPATH
fi
fi
cd
build-release-
$BUILDPATH
-Vector-Checks
cd
build-release-
$BUILDPATH
cmake
-DCMAKE_BUILD_TYPE
=
Release
-DHEXEX_BUILD_UNIT_TESTS
=
TRUE
$OPTIONS
../
cmake
-DCMAKE_BUILD_TYPE
=
Release
-DHEXEX_BUILD_UNIT_TESTS
=
TRUE
$OPTIONS
../
...
@@ -116,11 +116,11 @@ echo "======================================================================"
...
@@ -116,11 +116,11 @@ echo "======================================================================"
echo
-e
"
${
NC
}
"
echo
-e
"
${
NC
}
"
if
[
!
-d
build-debug-
$BUILDPATH
-Vector-Checks
]
;
then
if
[
!
-d
build-debug-
$BUILDPATH
]
;
then
mkdir
build-debug-
$BUILDPATH
-Vector-Checks
mkdir
build-debug-
$BUILDPATH
fi
fi
cd
build-debug-
$BUILDPATH
-Vector-Checks
cd
build-debug-
$BUILDPATH
cmake
-DCMAKE_BUILD_TYPE
=
Debug
-DHEXEX_BUILD_UNIT_TESTS
=
TRUE
$OPTIONS
../
cmake
-DCMAKE_BUILD_TYPE
=
Debug
-DHEXEX_BUILD_UNIT_TESTS
=
TRUE
$OPTIONS
../
...
...
This diff is collapsed.
Click to expand it.
CI/ci-mac.sh
0 → 100755
+
128
−
0
View file @
285c4933
#!/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"
;
BUILDPATH
=
"cpp98"
elif
[
"
$LANGUAGE
"
==
"C++11"
]
;
then
echo
"Building with C++11"
;
OPTIONS
=
"
$OPTIONS
-DCMAKE_CXX_FLAGS='-std=c++11' "
BUILDPATH
=
"cpp11"
elif
[
"
$LANGUAGE
"
==
"C++14"
]
;
then
echo
"Building with C++14"
;
OPTIONS
=
"
$OPTIONS
-DCMAKE_CXX_FLAGS='-std=c++14' "
BUILDPATH
=
"cpp14"
fi
#=====================================
# Color Settings:
#=====================================
NC
=
'\033[0m'
OUTPUT
=
'\033[0;32m'
WARNING
=
'\033[0;93m'
#clone OpenVolumeMesh
if
[
!
-d
OpenVolueMesh
]
;
then
git clone https://graphics.rwth-aachen.de:9000/OpenVolumeMesh/OpenVolumeMesh
else
cd
OpenVolumeMesh
git pull
cd
..
fi
echo
-e
"
${
OUTPUT
}
"
echo
""
echo
"======================================================================"
echo
"Basic configuration details:"
echo
"======================================================================"
echo
-e
"
${
NC
}
"
echo
"Options:
$OPTIONS
"
echo
"BuildPath:
$BUILDPATH
"
echo
"Path:
$PATH
"
echo
"Language:
$LANGUAGE
"
echo
-e
"
${
OUTPUT
}
"
echo
""
echo
"======================================================================"
echo
"Building Release version with vectorchecks enabled"
echo
"======================================================================"
echo
-e
"
${
NC
}
"
if
[
!
-d
build-release-
$BUILDPATH
]
;
then
mkdir
build-release-
$BUILDPATH
fi
cd
build-release-
$BUILDPATH
cmake
-DCMAKE_BUILD_TYPE
=
Release
-DHEXEX_BUILD_UNIT_TESTS
=
TRUE
$OPTIONS
../
#build it
make
#build the unit tests
make unittests
echo
-e
"
${
OUTPUT
}
"
echo
""
echo
"======================================================================"
echo
"Running unittests Release version"
echo
"======================================================================"
echo
-e
"
${
NC
}
"
cd
Build
#execute tests
./unittests
--gtest_color
=
yes
--gtest_output
=
xml
cd
..
cd
..
echo
-e
"
${
OUTPUT
}
"
echo
""
echo
"======================================================================"
echo
"Building Debug version"
echo
"======================================================================"
echo
-e
"
${
NC
}
"
if
[
!
-d
build-debug-
$BUILDPATH
-Vector-Checks
]
;
then
mkdir
build-debug-
$BUILDPATH
-Vector-Checks
fi
cd
build-debug-
$BUILDPATH
-Vector-Checks
cmake
-DCMAKE_BUILD_TYPE
=
Debug
-DHEXEX_BUILD_UNIT_TESTS
=
TRUE
$OPTIONS
../
#build it
make
#build the unit tests
make unittests
echo
-e
"
${
OUTPUT
}
"
echo
""
echo
"======================================================================"
echo
"Running unittests Debug version"
echo
"======================================================================"
echo
-e
"
${
NC
}
"
cd
Build
#execute tests
./unittests
--gtest_color
=
yes
--gtest_output
=
xml
cd
..
cd
..
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment