Skip to content

Commit

Permalink
Add flag to disable tests in build.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao committed Oct 27, 2024
1 parent 29653a0 commit 06eda44
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ platform=x64
vs=vs2022
configuration=Release
build_only=false
disable_tests=true
ci=false
target_framework=
verbosity=minimal
Expand Down Expand Up @@ -63,10 +64,10 @@ generate()
fi

if [ "$os" = "linux" ] || [ "$os" = "macosx" ]; then
"$builddir/premake.sh" --file="$builddir/premake5.lua" gmake2 --os=$os --arch=$platform --configuration=$configuration --target-framework=$target_framework "$@"
"$builddir/premake.sh" --file="$builddir/premake5.lua" gmake2 --os=$os --arch=$platform --configuration=$configuration --target-framework=$target_framework --disable-tests=$disable_tests "$@"
fi

"$builddir/premake.sh" --file="$builddir/premake5.lua" $vs --os=$os --arch=$platform --configuration=$configuration --target-framework=$target_framework
"$builddir/premake.sh" --file="$builddir/premake5.lua" $vs --os=$os --arch=$platform --configuration=$configuration --target-framework=$target_framework --disable-tests=$disable_tests
}

restore()
Expand Down Expand Up @@ -251,6 +252,9 @@ while [[ $# > 0 ]]; do
-build_only)
build_only=true
;;
-disable-tests)
disable_tests=true
;;
esac
shift
done
Expand Down

0 comments on commit 06eda44

Please sign in to comment.