Skip to content

Commit

Permalink
split build and test groups
Browse files Browse the repository at this point in the history
  • Loading branch information
lrineau committed Oct 10, 2024
1 parent 9267aef commit 79c473e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ function dockerbuild() {
}

function dockerbuildandtest() {
echo "::group::Building and testing image $1 from $2/Dockerfile"
echo "::group::Build image $1 from $2/Dockerfile"
dockerbuild $1 $2
echo '::endgroup::'

echo "::group::Test image $1"
docker run --rm -v $PWD/cgal:/cgal cgal/testsuite-docker:$1 bash -c 'cmake -DWITH_examples=ON -S /cgal -B /build && cmake --build /build -t terrain -v'
if command -v python3 >/dev/null; then
python3 ./test_container/test_container.py --image cgal/testsuite-docker:$1 --cgal-dir $HOME/cgal
Expand Down

0 comments on commit 79c473e

Please sign in to comment.