Skip to content

Commit

Permalink
travis: require arm64 tests to pass
Browse files Browse the repository at this point in the history
Do not perform coverage analysis on arm64; travis times out.
  • Loading branch information
kortschak committed Feb 22, 2020
1 parent 3973e30 commit 332e2c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -77,7 +77,6 @@ matrix:
go: master
allow_failures:
- go: master
- arch: arm64 # TODO(kortschak): Remove this when failures have been resolved.

before_install:
- ${TRAVIS_BUILD_DIR}/.travis/run-parts ${TRAVIS_BUILD_DIR}/.travis/deps.d/${TRAVIS_OS_NAME}
Expand Down
7 changes: 7 additions & 0 deletions .travis/script.d/test-coverage.sh
Expand Up @@ -5,6 +5,13 @@ if [[ "${TRAVIS_SECURE_ENV_VARS}" != true ]]; then
exit 0
fi

# FIXME(kortschak): When we have arm64 assembly kernels,
# reconsider this for the internal/asm packages.
if [[ $(go env GOARCH) != "amd64" ]]; then
echo "skipping coverage - GOARCH != amd64"
exit 0
fi

ORIGIN_MASTER="$(git ls-remote origin master | cut -f1)"
CURRENT="$(git rev-parse HEAD)"
if [[ ${ORIGIN_MASTER} != ${CURRENT} ]]; then
Expand Down

0 comments on commit 332e2c4

Please sign in to comment.