Skip to content

Commit

Permalink
fix(ci): build status in Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Apr 2, 2023
1 parent c74ec6c commit 9ffa09b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,16 @@ install:
- ./travisci-install-buildx.sh

script: |
BUILD_STATUS=success
docker run --rm arm32v7/python:3.11-alpine linux32 /usr/local/bin/python3.11 -c 'import distutils.util; print(distutils.util.get_platform())'
docker run --rm arm32v7/python:3.11-alpine linux32 /bin/sh -c '/usr/local/bin/python3.11 -m sysconfig | grep arm'
(while true; do echo "travis_wait"; docker stats --no-stream; free; df -h; sleep 30; done) &
WAIT_PID=$!
COMMIT_SHA=${TRAVIS_COMMIT} ./build.sh
COMMIT_SHA=${TRAVIS_COMMIT} ./build.sh || BUILD_STATUS=failed
kill -9 ${WAIT_PID}
if [ "${BUILD_STATUS}" != "success" ]; then
exit 1
fi
if [ -d "${HOME}/buildx-cache" ]; then
rm -rf ${HOME}/buildx-cache
fi
Expand Down

0 comments on commit 9ffa09b

Please sign in to comment.