|
| 1 | +arch: arm64-graviton2 |
| 2 | +dist: focal |
| 3 | +virt: vm |
| 4 | +group: edge |
| 5 | +language: python |
| 6 | +services: docker |
| 7 | +env: |
| 8 | + global: |
| 9 | + - REPO_DIR=pandas |
| 10 | + # on release change this to a version |
| 11 | + - BUILD_COMMIT="v1.1.2" |
| 12 | + - UNICODE_WIDTH=32 |
| 13 | + - PLAT=aarch64 |
| 14 | + - NP_BUILD_DEP="numpy==1.13.3" |
| 15 | + - NP_TEST_DEP="numpy==1.13.3" |
| 16 | + - CYTHON_BUILD_DEP="cython==0.29.16" |
| 17 | + - WHEELHOUSE_UPLOADER_USERNAME=travis-worker |
| 18 | + - TEST_DEPENDS="pytest pytest-xdist hypothesis" |
| 19 | + - TEST_DIR="tmp_for_test" |
| 20 | + - MB_ML_VER=2014 |
| 21 | + - DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8 |
| 22 | + |
| 23 | +jobs: |
| 24 | + include: |
| 25 | + - os: linux |
| 26 | + env: |
| 27 | + - MB_PYTHON_VERSION=3.6 |
| 28 | + - NP_BUILD_DEP="numpy==1.13.3" |
| 29 | + - NP_TEST_DEP="numpy==1.13.3" |
| 30 | + - os: linux |
| 31 | + env: |
| 32 | + - MB_PYTHON_VERSION=3.7 |
| 33 | + - NP_BUILD_DEP="numpy==1.14.5" |
| 34 | + - NP_TEST_DEP="numpy==1.14.5" |
| 35 | + - os: linux |
| 36 | + env: |
| 37 | + - MB_PYTHON_VERSION=3.8 |
| 38 | + - NP_BUILD_DEP="numpy==1.19.1" |
| 39 | + - NP_TEST_DEP="numpy==1.19.1" |
| 40 | +before_install: |
| 41 | + # See: |
| 42 | + # https://github.com/travis-ci/travis-ci/issues/8920#issuecomment-352661024 |
| 43 | + - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" |
| 44 | + - CONTAINER="wheels"; |
| 45 | + - BUILD_COMMIT=$BUILD_COMMIT; |
| 46 | + - BUILD_DEPENDS="$NP_BUILD_DEP $EXTRA_BUILD_DEP Cython" |
| 47 | + - TEST_DEPENDS="$NP_TEST_DEP pytest pytest-xdist hypothesis" |
| 48 | + - source multibuild/common_utils.sh |
| 49 | + - source multibuild/travis_steps.sh |
| 50 | + - source extra_functions.sh |
| 51 | + - before_install |
| 52 | + |
| 53 | +install: |
| 54 | + # Maybe get and clean and patch source |
| 55 | + - clean_code $REPO_DIR $BUILD_COMMIT |
| 56 | + - build_wheel $REPO_DIR $PLAT |
| 57 | + |
| 58 | +script: |
| 59 | + - source multibuild/common_utils.sh |
| 60 | + - source multibuild/travis_steps.sh |
| 61 | + - source extra_functions.sh |
| 62 | + - setup_test_venv |
| 63 | + - install_run $PLAT |
| 64 | + - teardown_test_venv |
| 65 | + |
| 66 | +after_success: |
| 67 | + # Taken from Macpython/scipy-wheels |
| 68 | + # trigger an upload to the shared ecosystem |
| 69 | + # infrastructure at: https://anaconda.org/scipy-wheels-nightly |
| 70 | + # for cron jobs only (restricted to master branch once |
| 71 | + # per week) |
| 72 | + # PANDAS_NIGHTLY_UPLOAD_TOKEN is a secret token |
| 73 | + # used in Travis CI config, originally |
| 74 | + # generated at anaconda.org for scipy-wheels-nightly |
| 75 | + - if [ "$TRAVIS_EVENT_TYPE" == "cron" ]; then |
| 76 | + source extra_functions.sh; |
| 77 | + for f in wheelhouse/*.whl; do rename_wheel $f; done; |
| 78 | + ANACONDA_ORG="scipy-wheels-nightly"; |
| 79 | + pip install git+https://github.com/Anaconda-Server/anaconda-client; |
| 80 | + anaconda -t ${PANDAS_NIGHTLY_UPLOAD_TOKEN} upload --force -u ${ANACONDA_ORG} ${TRAVIS_BUILD_DIR}/wheelhouse/*.whl; |
| 81 | + fi |
| 82 | + # for merges (push events) we use the staging area instead; |
| 83 | + # PANDAS_STAGING_UPLOAD_TOKEN is a secret token used in Travis |
| 84 | + # CI config, originally generated at anaconda.org for |
| 85 | + # multibuild-wheels-staging |
| 86 | + - if [ "$TRAVIS_EVENT_TYPE" == "push" ]; then |
| 87 | + ANACONDA_ORG="multibuild-wheels-staging"; |
| 88 | + pip install git+https://github.com/Anaconda-Server/anaconda-client; |
| 89 | + anaconda -t ${PANDAS_STAGING_UPLOAD_TOKEN} upload --force -u ${ANACONDA_ORG} ${TRAVIS_BUILD_DIR}/wheelhouse/*.whl; |
| 90 | + fi |
0 commit comments