mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
Use M130 containers for unit tests, and use unit_test_stub.sh to invoke unit tests.
Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
committed by
Satadru Pramanik, DO, MPH, MEng
parent
7cb8acdf9d
commit
eed71f031e
6
.github/workflows/Unit-Test.yml
vendored
6
.github/workflows/Unit-Test.yml
vendored
@@ -111,7 +111,7 @@ jobs:
|
||||
x86_64)
|
||||
# Export the x86_64 container depending on whether this PR updates packages with a minimum glibc greater than or equal to 2.37.
|
||||
if [[ $GLIBC_237_COMPATIBLE_PACKAGES ]]; then
|
||||
echo "CONTAINER=hatch-x86_64.m129" >> $GITHUB_ENV
|
||||
echo "CONTAINER=hatch-x86_64.m130" >> $GITHUB_ENV
|
||||
else
|
||||
echo "CONTAINER=nocturne-x86_64.m90" >> $GITHUB_ENV
|
||||
fi
|
||||
@@ -121,7 +121,7 @@ jobs:
|
||||
armv7l)
|
||||
# Export the armv7l container depending on whether this PR updates packages with a minimum glibc greater than or equal to 2.37.
|
||||
if [[ $GLIBC_237_COMPATIBLE_PACKAGES ]]; then
|
||||
echo "CONTAINER=strongbad-armv7l.m129" >> $GITHUB_ENV
|
||||
echo "CONTAINER=strongbad-armv7l.m130" >> $GITHUB_ENV
|
||||
else
|
||||
echo "CONTAINER=fievel-armv7l.m91" >> $GITHUB_ENV
|
||||
fi
|
||||
@@ -174,5 +174,5 @@ jobs:
|
||||
-e CREW_REPO="${CREW_REPO}" \
|
||||
-e CREW_BRANCH="${CREW_BRANCH}" \
|
||||
"satmandu/crewbuild:${CONTAINER}" \
|
||||
/bin/chromebrewstart /usr/local/lib/crew/tests/unit_test.sh
|
||||
/bin/chromebrewstart /usr/local/lib/crew/tests/unit_test_stub.sh
|
||||
fi
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
#!/bin/bash -e
|
||||
# This is for use as a Github CI Pull Request Unit Test.
|
||||
#!/bin/bash
|
||||
# This is for use as a Github CI Unit Test.
|
||||
# Version 1.0
|
||||
set -e
|
||||
echo "CHANGED_PACKAGES: ${CHANGED_PACKAGES}"
|
||||
cd /usr/local/lib/crew/packages/
|
||||
yes | crew update
|
||||
yes | crew upgrade
|
||||
git clone --depth=1 --branch="$CREW_BRANCH" "$CREW_REPO" ~/build_test
|
||||
# crew wont let you build if you're in the installation directory.
|
||||
(cd ~/build_test && yes | CREW_CACHE_ENABLED=1 crew build -vf ~/build_test/packages/hello_world_chromebrew.rb)
|
||||
|
||||
Reference in New Issue
Block a user