Skip to content

Commit b54e688

Browse files
get cmake setting from environment variables
1 parent ed74818 commit b54e688

File tree

2 files changed

+30
-30
lines changed

2 files changed

+30
-30
lines changed

ci/build_and_test.sh

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -111,30 +111,30 @@ rm -rf build
111111

112112
# CMake configuration:
113113
CMAKE_ARGS=(
114-
-D "CMAKE_INSTALL_PREFIX=$(pwd)/test-install/"
115-
# Enable all backends
116-
-D AL_BACKEND_HDF5=ON
117-
-D AL_BACKEND_MDSPLUS=ON
118-
-D AL_BACKEND_UDA=ON
119-
# Build MDSplus models
120-
-D AL_BUILD_MDSPLUS_MODELS=ON
121-
# Download dependencies from HTTPS (using an access token):
122-
-D AL_DOWNLOAD_DEPENDENCIES=ON
123-
-D AL_CORE_GIT_REPOSITORY=https://git.iter.org/scm/imas/al-core.git
124-
-D AL_PLUGINS_GIT_REPOSITORY=https://git.iter.org/scm/imas/al-plugins.git
125-
-D DD_GIT_REPOSITORY=https://git.iter.org/scm/imas/data-dictionary.git
126-
# DD version: can be set with DD_VERSION env variable, otherwise use latest main
127-
-D DD_VERSION=${DD_VERSION:-main}
128-
# AL-Core version: can be set with AL_CORE_VERSION env variable, otherwise use latest main
129-
-D AL_CORE_VERSION=${AL_CORE_VERSION:-main}
130-
# HLI options
131-
-D AL_EXAMPLES=ON
132-
-D AL_TESTS=ON
133-
-D AL_PLUGINS=ON
134-
# Build documentation
135-
-D AL_HLI_DOCS=ON
136-
# Work around Boost linker issues on 2020b toolchain
137-
-D Boost_NO_BOOST_CMAKE=ON
114+
-D "CMAKE_INSTALL_PREFIX=$(pwd)/test-install/"
115+
# Enable all backends
116+
-D AL_BACKEND_HDF5=${AL_BACKEND_HDF5:-ON}
117+
-D AL_BACKEND_MDSPLUS=${AL_BACKEND_MDSPLUS:-ON}
118+
-D AL_BACKEND_UDA=${AL_BACKEND_UDA:-ON}
119+
# Build MDSplus models
120+
-D AL_BUILD_MDSPLUS_MODELS=${AL_BUILD_MDSPLUS_MODELS:-ON}
121+
# Download dependencies from HTTPS (using an access token):
122+
-D AL_DOWNLOAD_DEPENDENCIES=${AL_DOWNLOAD_DEPENDENCIES:-ON}
123+
-D AL_CORE_GIT_REPOSITORY=${AL_CORE_GIT_REPOSITORY:-https://git.iter.org/scm/imas/al-core.git}
124+
-D AL_PLUGINS_GIT_REPOSITORY=${AL_PLUGINS_GIT_REPOSITORY:-https://git.iter.org/scm/imas/al-plugins.git}
125+
-D DD_GIT_REPOSITORY=${DD_GIT_REPOSITORY:-https://git.iter.org/scm/imas/data-dictionary.git}
126+
# DD version: can be set with DD_VERSION env variable, otherwise use latest main
127+
-D DD_VERSION=${DD_VERSION:-main}
128+
# AL-Core version: can be set with AL_CORE_VERSION env variable, otherwise use latest main
129+
-D AL_CORE_VERSION=${AL_CORE_VERSION:-main}
130+
# HLI options
131+
-D AL_EXAMPLES=${AL_EXAMPLES:-ON}
132+
-D AL_TESTS=${AL_TESTS:-ON}
133+
-D AL_PLUGINS=${AL_PLUGINS:-ON}
134+
# Build documentation
135+
-D AL_HLI_DOCS=${AL_HLI_DOCS:-ON}
136+
# Work around Boost linker issues on 2020b toolchain
137+
-D Boost_NO_BOOST_CMAKE=${Boost_NO_BOOST_CMAKE:-ON}
138138
)
139139
# Note: compilers are set as environment variables in the Bamboo config
140140
cmake -B build "${CMAKE_ARGS[@]}"

ci/build_docs.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ rm -rf build
4444
# CMake configuration:
4545
CMAKE_ARGS=(
4646
# Download dependencies from HTTPS (using an access token):
47-
-D AL_DOWNLOAD_DEPENDENCIES=ON
48-
-D AL_CORE_GIT_REPOSITORY=https://git.iter.org/scm/imas/al-core.git
49-
-D AL_PLUGINS_GIT_REPOSITORY=https://git.iter.org/scm/imas/al-plugins.git
50-
-D DD_GIT_REPOSITORY=https://git.iter.org/scm/imas/data-dictionary.git
47+
-D AL_DOWNLOAD_DEPENDENCIES=${AL_DOWNLOAD_DEPENDENCIES:-ON}
48+
-D AL_CORE_GIT_REPOSITORY=${AL_CORE_GIT_REPOSITORY:-https://git.iter.org/scm/imas/al-core.git}
49+
-D AL_PLUGINS_GIT_REPOSITORY=${AL_PLUGINS_GIT_REPOSITORY:-https://git.iter.org/scm/imas/al-plugins.git}
50+
-D DD_GIT_REPOSITORY=${DD_GIT_REPOSITORY:-https://git.iter.org/scm/imas/data-dictionary.git}
5151
# Build only documentation
52-
-D AL_HLI_DOCS=ON
53-
-D AL_DOCS_ONLY=ON
52+
-D AL_HLI_DOCS=${AL_HLI_DOCS:-ON}
53+
-D AL_DOCS_ONLY=${AL_DOCS_ONLY:-ON}
5454
)
5555
# Note: compilers are set as environment variables in the Bamboo config
5656
cmake -B build "${CMAKE_ARGS[@]}"

0 commit comments

Comments
 (0)