|
| 1 | +branches: |
| 2 | + only: |
| 3 | + - master |
| 4 | + |
| 5 | +language: python |
| 6 | + |
| 7 | +python: |
| 8 | + # use versions available for job image |
| 9 | + # aarch64_u16pytall:v6.7.4 |
| 10 | + # (what we currently have access to by default) |
| 11 | + # this is a bit restrictive in terms |
| 12 | + # of version availability / control, |
| 13 | + # but it is convenient |
| 14 | + - 2.7 |
| 15 | + - 3.7 |
| 16 | + |
| 17 | +runtime: |
| 18 | + # use the free open source pool of nodes |
| 19 | + # only for ARM platform |
| 20 | + nodePool: shippable_shared_aarch64 |
| 21 | + |
| 22 | +build: |
| 23 | + ci: |
| 24 | + # install dependencies |
| 25 | + - sudo apt-get install gcc gfortran libblas-dev liblapack-dev |
| 26 | + # add pathlib for Python 2, otherwise many tests are skipped |
| 27 | + - pip install --upgrade pip |
| 28 | + # we will pay the ~13 minute cost of compiling Cython only when a new |
| 29 | + # version is scraped in by pip; otherwise, use the cached |
| 30 | + # wheel shippable places on Amazon S3 after we build it once |
| 31 | + - pip install cython --cache-dir=/root/.cache/pip/wheels/$SHIPPABLE_PYTHON_VERSION |
| 32 | + - pip install pathlib |
| 33 | + # install pytz for datetime testing |
| 34 | + - pip install pytz |
| 35 | + # install pytest-xdist to leverage a second core |
| 36 | + # for unit tests |
| 37 | + - pip install pytest-xdist |
| 38 | + |
| 39 | + # build and test numpy |
| 40 | + - export PATH=$PATH:$SHIPPABLE_REPO_DIR |
| 41 | + # build first and adjust PATH so f2py is found in scripts dir |
| 42 | + # use > 1 core for build sometimes slows down a fair bit, |
| 43 | + # other times modestly speeds up, so avoid for now |
| 44 | + - python setup.py install |
| 45 | + - extra_directories=($SHIPPABLE_REPO_DIR/build/*scripts*) |
| 46 | + - extra_path=$(printf "%s:" "${extra_directories[@]}") |
| 47 | + - export PATH="${extra_path}${PATH}" |
| 48 | + # run the test suite |
| 49 | + - python runtests.py -- -rsx --junit-xml=$SHIPPABLE_REPO_DIR/shippable/testresults/tests.xml -n 2 --durations=10 |
| 50 | + |
| 51 | + cache: true |
| 52 | + cache_dir_list: |
| 53 | + # the NumPy project uses a single Amazon S3 cache |
| 54 | + # so upload the parent path of the Python-specific |
| 55 | + # version paths to avoid i.e., 2.7 overwriting |
| 56 | + # 3.7 pip cache (seems to be an issue) |
| 57 | + - /root/.cache/pip/wheels |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | +# disable email notification |
| 62 | +# of CI job result |
| 63 | +integrations: |
| 64 | + notifications: |
| 65 | + - integrationName: email |
| 66 | + type: email |
| 67 | + on_success: never |
| 68 | + on_failure: never |
| 69 | + on_cancel: never |
| 70 | + on_pull_request: never |
0 commit comments