-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
47 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,42 @@ | ||
#!/bin/sh -l | ||
set -e | ||
|
||
echo "::group::Prepare EVE repository for branch " $1 | ||
mkdir build && cd build | ||
cmake .. -G Ninja | ||
ninja install | grep cmake | ||
CURRENT_SHA1=`git rev-parse HEAD` | ||
cd .. | ||
echo "::endgroup::" | ||
if [ $2 -eq 0 ] | ||
then | ||
echo "::group::Prepare EVE repository for branch " $1 | ||
mkdir build && cd build | ||
cmake .. -G Ninja | ||
ninja install | grep cmake | ||
CURRENT_SHA1=`git rev-parse HEAD` | ||
cd .. | ||
echo "::endgroup::" | ||
|
||
echo "::group::Test EVE via the install target" | ||
mkdir install-test && cd install-test | ||
cmake ../test/integration/install-test -G Ninja | ||
ninja test_eve | ||
./test_eve | ||
cd .. | ||
echo "::endgroup::" | ||
echo "::group::Test EVE via the install target" | ||
mkdir install-test && cd install-test | ||
cmake ../test/integration/install-test -G Ninja | ||
ninja test_eve | ||
./test_eve | ||
echo "::endgroup::" | ||
fi | ||
|
||
echo "::group::Test EVE via FetchContent" | ||
mkdir fetch-test && cd fetch-test | ||
cmake ../test/integration/fetch-test -G Ninja -DEVE_SHA1=$1 | ||
ninja test_eve | ||
./test_eve | ||
cd .. | ||
echo "::endgroup::" | ||
if [ $2 -eq 1 ] | ||
then | ||
echo "::group::Test EVE via FetchContent" | ||
mkdir fetch-test && cd fetch-test | ||
cmake ../test/integration/fetch-test -G Ninja -DEVE_SHA1=$1 | ||
ninja test_eve | ||
./test_eve | ||
echo "::endgroup::" | ||
fi | ||
|
||
echo "::group::Test EVE via CPM" | ||
mkdir cpm-test && cd cpm-test | ||
cmake ../test/integration/cpm-test -G Ninja -DEVE_SHA1=$1 | ||
ninja test_eve | ||
./test_eve | ||
cd .. | ||
echo "::endgroup::" | ||
if [ $2 -eq 2 ] | ||
then | ||
echo "::group::Test EVE via CPM" | ||
mkdir cpm-test && cd cpm-test | ||
cmake ../test/integration/cpm-test -G Ninja -DEVE_SHA1=$1 | ||
ninja test_eve | ||
./test_eve | ||
echo "::endgroup::" | ||
fi | ||
|
||
return 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters