From 5150122a955a3e4bc178944f7f28ce503c6fea44 Mon Sep 17 00:00:00 2001 From: Matthieu Darbois Date: Sun, 23 May 2021 21:34:07 +0200 Subject: [PATCH] Fix Travis CI tests on ppc64le/s390x (#689) * Disable manylinux only tests on Travis CI ppc64le Those tests are taking too much disk space for the Travis CI runner right now. c.f. https://travis-ci.community/t/running-out-of-disk-space-quota-when-using-docker-on-ppc64le/11634 * Use focal to run aarch64/ppc64le/s390x jobs on Travis CI This removes allow_failures from the Travis CI s390x job * Use `focal` distribution for all Travis CI configurations * Revert "Disable manylinux only tests on Travis CI ppc64le" This reverts commit d0a09c689c058985c7dcb60b1e11a85a7bfce5e0. * Skip test_manylinuxXXXX_only on Travis CI ppc64le * Add a comment on why test_manylinuxXXXX_only test is skipped --- .travis.yml | 21 +++++++++------------ examples/travis-ci-deploy.yml | 2 ++ examples/travis-ci-minimal.yml | 2 ++ examples/travis-ci-test-and-deploy.yml | 2 ++ 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 08b22baa..e5f34fdf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,6 @@ -language: minimal +os: linux +dist: focal +language: python branches: only: @@ -7,24 +9,25 @@ branches: jobs: include: - name: Linux | x86_64 + i686 | Python 3.6 - language: python python: 3.6 services: docker env: PYTHON=python - name: Linux | arm64 | Python 3.6 - language: python python: 3.6 services: docker arch: arm64 env: PYTHON=python - name: Linux | ppc64le | Python 3.6 - language: python python: 3.6 services: docker arch: ppc64le - env: PYTHON=python + env: + - PYTHON=python + # skip test_manylinuxXXXX_only, it uses too much disk space + # c.f. https://travis-ci.community/t/running-out-of-disk-space-quota-when-using-docker-on-ppc64le/11634 + - PYTEST_ADDOPTS='-k "not test_manylinuxXXXX_only"' - name: Windows | x86_64 | Python 3.6 os: windows @@ -36,18 +39,12 @@ jobs: env: - PYTHON=C:\\Python36\\python - - &linux_s390x_36 - name: Linux | s390x | Python 3.6 - language: python + - name: Linux | s390x | Python 3.6 python: 3.6 services: docker arch: s390x env: PYTHON=python - allow_failures: - # must repeat the s390x job above exactly to match - - *linux_s390x_36 - install: $PYTHON -m pip install -e ".[dev]" pytest-custom-exit-code script: $PYTHON ./bin/run_tests.py diff --git a/examples/travis-ci-deploy.yml b/examples/travis-ci-deploy.yml index b0980468..8591dac5 100644 --- a/examples/travis-ci-deploy.yml +++ b/examples/travis-ci-deploy.yml @@ -1,6 +1,8 @@ # As written, this configuration will build your wheels on every # commit, but will only push to PyPI on tagged commits. +os: linux +dist: focal language: python jobs: diff --git a/examples/travis-ci-minimal.yml b/examples/travis-ci-minimal.yml index d7235380..6ae08391 100644 --- a/examples/travis-ci-minimal.yml +++ b/examples/travis-ci-minimal.yml @@ -1,3 +1,5 @@ +os: linux +dist: focal language: python jobs: diff --git a/examples/travis-ci-test-and-deploy.yml b/examples/travis-ci-test-and-deploy.yml index 01947a57..56572e55 100644 --- a/examples/travis-ci-test-and-deploy.yml +++ b/examples/travis-ci-test-and-deploy.yml @@ -5,6 +5,8 @@ # repo is yours (e.g. it won't run on a Pull Request). For convenience, a source # distribution is also created. +os: linux +dist: focal language: python python: - 3.6