Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GILLES Sebastien
MoReFEM
Commits
a9df2ee8
Commit
a9df2ee8
authored
Mar 22, 2019
by
GILLES Sebastien
Browse files
#1360 Add a job for a macOS build.
parent
e8783e5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ExternalTools/Gitlab-CI/gitlab-ci.yml
View file @
a9df2ee8
...
...
@@ -7,7 +7,7 @@ stages:
# Todo: Doxygen doc should be published with pages.
.build_template
:
&build_template
.build_template
_linux
:
&build_template
_linux
stage
:
build_and_test
image
:
registry.gitlab.inria.fr/morefem/thirdpartycompilationfactory/${OS}-${COMPILER}-${MODE}
cache
:
...
...
@@ -25,6 +25,25 @@ stages:
-
cd build && python ../cmake/Scripts/configure_cmake.py --cache_file=../cmake/PreCache/linux.cmake --cmake_args="-G Ninja" --third_party_directory=/opt --mode=${MODE} --library_type=${LIB_NATURE} --morefem_as_single_library=${IS_ONLY_ONE_LIB}
-
ninja |& tee compilation.log
-
ninja test
# as artifact are limited in size, I can't unfortunately use a separate stage...
.build_template_macos
:
&build_template_macos
stage
:
build_and_test
cache
:
key
:
"
cache_${CI_COMMIT_REF_SLUG}_${OS}-${COMPILER}-${MODE}-${LIB_NATURE}-${IS_ONLY_ONE_LIB}"
untracked
:
true
paths
:
-
build
artifacts
:
name
:
"
artifact_${CI_COMMIT_REF_SLUG}_${OS}-${COMPILER}-${MODE}-${LIB_NATURE}-${IS_ONLY_ONE_LIB}"
expire_in
:
8 hours
paths
:
-
build/compilation.log
script
:
-
mkdir -p build
-
cd build && python ../cmake/Scripts/configure_cmake.py --cache_file=../cmake/PreCache/macos_apple_clang.cmake --cmake_args="-G Ninja" --third_party_directory=/Volumes/Data/ci/opt/${MODE} --mode=${MODE} --library_type=${LIB_NATURE} --morefem_as_single_library=${IS_ONLY_ONE_LIB}
-
ninja |& tee compilation.log
-
ninja test
# as artifact are limited in size, I can't unfortunately use a separate stage...
.run_doxygen_template
:
&run_doxygen_template
...
...
@@ -86,7 +105,7 @@ stages:
build-Ubuntu-gcc-debug-shared-several_libs
:
<<
:
*build_template
<<
:
*build_template
_linux
variables
:
OS
:
"
ubuntu"
COMPILER
:
"
gcc"
...
...
@@ -108,7 +127,7 @@ check_warning_Ubuntu-gcc-debug-shared-several_libs:
build-Ubuntu-gcc-release-static-one_lib
:
<<
:
*build_template
<<
:
*build_template
_linux
variables
:
OS
:
"
ubuntu"
COMPILER
:
"
gcc"
...
...
@@ -130,7 +149,7 @@ check_warning_Ubuntu-gcc-release-static-one_lib:
build-Fedora-clang-debug-static-one_lib
:
<<
:
*build_template
<<
:
*build_template
_linux
variables
:
OS
:
"
fedora"
COMPILER
:
"
clang"
...
...
@@ -152,7 +171,7 @@ check_warning_Fedora-clang-debug-static-one_lib:
build-Fedora-clang-release-shared-one_lib
:
<<
:
*build_template
<<
:
*build_template
_linux
variables
:
OS
:
"
fedora"
COMPILER
:
"
clang"
...
...
@@ -174,7 +193,7 @@ check_warning_Fedora-clang-release-shared-one_lib:
build-Fedora-gcc-debug-static-one_lib
:
<<
:
*build_template
<<
:
*build_template
_linux
variables
:
OS
:
"
fedora"
COMPILER
:
"
gcc"
...
...
@@ -192,7 +211,29 @@ check_warning_Fedora-gcc-debug-static-one_lib:
COMPILER
:
"
gcc"
MODE
:
"
debug"
LIB_NATURE
:
"
static"
IS_ONLY_ONE_LIB
:
"
True"
IS_ONLY_ONE_LIB
:
"
True"
build-macos-clang-debug-static-one_lib
:
<<
:
*build_template_macos
variables
:
OS
:
"
macOS"
COMPILER
:
"
clang"
MODE
:
"
debug"
LIB_NATURE
:
"
static"
IS_ONLY_ONE_LIB
:
"
True"
check_warning_macos-clang-debug-static-one_lib
:
<<
:
*check_compilation_warning_template
dependencies
:
-
build-macos-clang-debug-static-one_lib
variables
:
OS
:
"
macOS"
COMPILER
:
"
clang"
MODE
:
"
debug"
LIB_NATURE
:
"
static"
IS_ONLY_ONE_LIB
:
"
True"
complete_doxygen
:
...
...
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