Skip to content

Commit

Permalink
Merge pull request #212 from nicolasbock/build_testing
Browse files Browse the repository at this point in the history
Test for BML_TESTING when testing
  • Loading branch information
nicolasbock authored May 21, 2018
2 parents fe125e8 + f0497a8 commit d99d3ad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ create() {
}

configure() {
set_defaults
cd "${BUILD_DIR}"
if [[ -f "${BUILD_DIR}/CMakeCache.txt" ]]; then
rm -v "${BUILD_DIR}/CMakeCache.txt" || die
Expand Down Expand Up @@ -215,6 +214,8 @@ dist() {

echo "Writing output to ${LOG_FILE}"

set_defaults

if [[ $# -gt 0 ]]; then
if [[ "$1" = "-h" || "$1" = "--help" ]]; then
help
Expand Down Expand Up @@ -245,6 +246,10 @@ if [[ $# -gt 0 ]]; then
install
;;
"testing")
if [[ ${BML_TESTING} != "yes" ]]; then
echo "The testing step requires BML_TESTING to be true"
exit 1
fi
create
configure
compile
Expand Down

0 comments on commit d99d3ad

Please sign in to comment.