Skip to content

Commit

Permalink
dont run qemu test on stretch (too rotten)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieupoumeyrolsonos authored and kali committed Jan 11, 2024
1 parent 78b730d commit bda9676
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .travis/cross.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ case "$PLATFORM" in
"aarch64-unknown-linux-gnu-stretch" | "armv7-unknown-linux-gnueabihf-stretch" )
INNER_PLATFORM=${PLATFORM%-stretch}
(cd .travis/docker-debian-stretch; docker build --tag debian-stretch .)
docker run -v `pwd`:/tract -w /tract -e PLATFORM=$INNER_PLATFORM debian-stretch ./.travis/cross.sh
docker run -v `pwd`:/tract -w /tract \
-e SKIP_QEMU_TEST=skip \
-e PLATFORM=$INNER_PLATFORM debian-stretch \
./.travis/cross.sh
sudo chown -R `whoami` .
export RUSTC_TRIPLE=$INNER_PLATFORM
;;
Expand Down Expand Up @@ -192,9 +195,12 @@ case "$PLATFORM" in

$SUDO apt-get -y install --no-install-recommends qemu-system-arm qemu-user libssl-dev pkg-config $PACKAGES
rustup target add $RUSTC_TRIPLE
qemu-$QEMU_ARCH --version
cargo dinghy --platform $PLATFORM $DINGHY_TEST_ARGS test --profile opt-no-lto -p tract-linalg -- --nocapture
cargo dinghy --platform $PLATFORM $DINGHY_TEST_ARGS test --profile opt-no-lto -p tract-core
if [ -z "$SKIP_QEMU_TEST" ]
then
qemu-$QEMU_ARCH --version
cargo dinghy --platform $PLATFORM $DINGHY_TEST_ARGS test --profile opt-no-lto -p tract-linalg -- --nocapture
cargo dinghy --platform $PLATFORM $DINGHY_TEST_ARGS test --profile opt-no-lto -p tract-core
fi

# keep lto for these two are they're going to devices.
cargo dinghy --platform $PLATFORM build --release -p tract -p example-tensorflow-mobilenet-v2
Expand Down

0 comments on commit bda9676

Please sign in to comment.