|
| 1 | +env: |
| 2 | + global: |
| 3 | + - REPO_DIR=numpy |
| 4 | + # Also see CRON_COMMIT below |
| 5 | + - BUILD_COMMIT=master |
| 6 | + - BUILD_DEPENDS=cython==0.29.16 |
| 7 | + - TEST_DEPENDS="pytest hypothesis cffi pytz" |
| 8 | + # Commit when running from cron job |
| 9 | + - CRON_COMMIT=master |
| 10 | + - EXTRA_ARGV="'--disable-pytest-warnings'" |
| 11 | + |
| 12 | +language: python |
| 13 | +dist: bionic |
| 14 | +services: docker |
| 15 | +os: linux |
| 16 | + |
| 17 | +jobs: |
| 18 | + include: |
| 19 | + - os: linux |
| 20 | + arch: x86_64 |
| 21 | + env: |
| 22 | + - MB_PYTHON_VERSION=pypy3.6-7.3.1 |
| 23 | + - MB_ML_VER=2010 |
| 24 | + - DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT} |
| 25 | + |
| 26 | + # The manylinux2014 arm64 image has libbz2.so.1 and libbz.so.1.0.6 but not |
| 27 | + # libbz2.so.1.0, leading to this error: |
| 28 | + # pypy3.6-v7.3.1-aarch64/bin/pypy: error while loading shared libraries: |
| 29 | + # libbz2.so.1.0: cannot open shared object file: No such file or directory |
| 30 | + #- os: linux |
| 31 | + # arch: arm64 |
| 32 | + # env: |
| 33 | + # - PLAT=aarch64 |
| 34 | + # - MB_ML_VER=2014 |
| 35 | + # - MB_PYTHON_VERSION=pypy3.6-7.3.1 |
| 36 | + # - DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT} |
| 37 | + |
| 38 | + # The pypy3 package has bin/pypy3 not bin/pypy, so multibuild/common_utils.sh |
| 39 | + # has a "ln" command (not "ln -s"). Apparently it does not work, we get the |
| 40 | + # error message: |
| 41 | + # multibuild/common_utils.sh: line 476: |
| 42 | + # /Users/travis/build/MacPython/numpy-wheels/pypy3.6-v7.3.1-linux64/bin/pypy: |
| 43 | + # cannot execute binary file |
| 44 | + # - os: osx |
| 45 | + # language: generic |
| 46 | + # env: |
| 47 | + # - MB_PYTHON_VERSION=pypy3.6-7.3.1 |
| 48 | + # - MB_PYTHON_OSX_VER=10.9 |
| 49 | + |
| 50 | + # manylinux2014 glibc (2.17) still has blacklisted functions, the |
| 51 | + # overriden arcsinh fails tests |
| 52 | + #- os: linux |
| 53 | + # arch: arm64 |
| 54 | + # env: |
| 55 | + # - PLAT=aarch64 |
| 56 | + # - MB_ML_VER=2014 |
| 57 | + # - MB_PYTHON_VERSION=3.6 |
| 58 | + # - DEBUG_PRINT=1 |
| 59 | + # - DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT} |
| 60 | + #- os: linux |
| 61 | + # arch: arm64 |
| 62 | + # env: |
| 63 | + # - PLAT=aarch64 |
| 64 | + # - MB_ML_VER=2014 |
| 65 | + # - MB_PYTHON_VERSION=3.8 |
| 66 | + # - DEBUG_PRINT=1 |
| 67 | + # - DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT} |
| 68 | + #- os: linux |
| 69 | + # arch: arm64 |
| 70 | + # env: |
| 71 | + # - PLAT=aarch64 |
| 72 | + # - MB_ML_VER=2014 |
| 73 | + # - MB_PYTHON_VERSION=3.7 |
| 74 | + # - DEBUG_PRINT=1 |
| 75 | + # - DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT} |
| 76 | + |
| 77 | +before_install: |
| 78 | + - if [ "$TRAVIS_EVENT_TYPE" == "cron" ]; then |
| 79 | + CONTAINER="pre-release"; |
| 80 | + BUILD_COMMIT=${CRON_COMMIT}; |
| 81 | + NPY_RELAXED_STRIDES_DEBUG=1; |
| 82 | + else |
| 83 | + CONTAINER=wheels; |
| 84 | + fi |
| 85 | + # Set DEBUG_PRINT environment variable in settings |
| 86 | + - if [ -n "${DEBUG_PRINT}" ]; then set -x; fi |
| 87 | + - source multibuild/common_utils.sh |
| 88 | + - source multibuild/travis_steps.sh |
| 89 | + - source extra_functions.sh |
| 90 | + - before_install |
| 91 | + |
| 92 | +install: |
| 93 | + # Maybe get and clean and patch source |
| 94 | + - clean_code $REPO_DIR $BUILD_COMMIT |
| 95 | + - ./patch_code.sh $REPO_DIR |
| 96 | + - build_wheel $REPO_DIR $PLAT |
| 97 | + |
| 98 | +script: |
| 99 | + - install_run $PLAT |
| 100 | + |
| 101 | +after_success: |
| 102 | + # trigger an upload to the shared ecosystem |
| 103 | + # infrastructure at: https://anaconda.org/scipy-wheels-nightly |
| 104 | + # for cron jobs only (restricted to master branch once |
| 105 | + # per week) |
| 106 | + # The tokens are set from |
| 107 | + # https://travis-ci.org/github/MacPython/numpy-wheels/settings |
| 108 | + # originally generated at |
| 109 | + # anaconda.org/scipy-wheels-nightly/settings/access |
| 110 | + - if [ "$TRAVIS_BRANCH" == "master" ]; then |
| 111 | + ANACONDA_ORG="scipy-wheels-nightly"; |
| 112 | + TOKEN=${NUMPY_NIGHTLY_UPLOAD_TOKEN}; |
| 113 | + else |
| 114 | + ANACONDA_ORG="multibuild-wheels-staging"; |
| 115 | + TOKEN=${NUMPY_STAGING_UPLOAD_TOKEN}; |
| 116 | + fi |
| 117 | + pip install git+https://github.com/Anaconda-Server/anaconda-client; |
| 118 | + - if [ -n "${TOKEN}" ] ;then |
| 119 | + anaconda -t ${TOKEN} upload u ${ANACONDA_ORG} ${TRAVIS_BUILD_DIR}/wheelhouse/*.whl; |
| 120 | + fi |
0 commit comments