From 61d0e07590a7bb5ea6162db0bedce3d65cab06f7 Mon Sep 17 00:00:00 2001 From: Luiz Irber Date: Mon, 7 Dec 2020 11:58:14 -0800 Subject: [PATCH] build arm and ppc wheels in travis --- .github/workflows/build_wheel.yml | 8 ++++- .travis.yml | 53 +++++++++++++++++-------------- 2 files changed, 37 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build_wheel.yml b/.github/workflows/build_wheel.yml index cf31df09ec..1ff0438a4c 100644 --- a/.github/workflows/build_wheel.yml +++ b/.github/workflows/build_wheel.yml @@ -1,6 +1,12 @@ name: cibuildwheel -on: [push, pull_request] +on: + push: + branches: [latest] + pull_request: + branches: [latest] + schedule: + - cron: "0 0 * * *" # daily jobs: build_wheels: diff --git a/.travis.yml b/.travis.yml index 19d0037bff..2e0f92186e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,6 @@ language: python os: linux dist: xenial -addons: - apt_packages: - - pandoc cache: directories: @@ -14,8 +11,7 @@ cache: if: | (type = push AND (branch = latest)) OR \ (tag =~ ^v) OR \ - (type = pull_request) OR \ - (type = cron) + (type = pull_request) script: tox -vv @@ -26,21 +22,10 @@ before_script: pip install tox-travis jobs: include: - - &test - stage: test - python: 3.7.9 - - <<: *test - python: 3.8 - env: - - PYTHONDEVMODE=1 - - <<: *test - os: osx - osx_image: xcode10.1 - language: generic - env: - - TOXENV=py37 - - <<: *test + - &test_ipfs name: integration (ipfs/redis) + stage: test_ipfs + python: 3.7.9 before_install: - |- ### Copied from https://github.com/ipfs-shipyard/py-ipfs-http-client/blob/master/.travis.yml @@ -100,12 +85,34 @@ jobs: services: - redis - docker - - <<: *test + + - &wheel + stage: build wheel and send to github releases python: 3.7.9 + arch: arm64 + services: + - docker env: - - TOXENV=docs + - CIBW_BUILD: "'cp37-*'" + - CIBW_SKIP: "'*-win32 *-manylinux_i686'" + - CIBW_BEFORE_BUILD='source .travis/install_cargo.sh' + - CIBW_ENVIRONMENT='PATH="$HOME/.cargo/bin:$PATH"' + before_script: + - python3 -m pip install cibuildwheel==1.7.1 + script: + - python3 -m cibuildwheel --output-dir wheelhouse + deploy: + provider: releases + token: + secure: "FZmx00gL0m0uNVN8fpvqbUZSI20EEk4sgrEv4wpGFr8SFNwPb/VuizQRTapeF2AW9qzbfbUv4bR/+oSKu5jxvd+7+p9HlOZT285a5yfxay9OA8YUbpQz4a9J0CETOpxrA2wRRWBDqzjEWzLTGUquOhyBZn4cwujvA9syOdB7OSNKsB6ARc+zhqPeoMKc9JcjzwiEIh7tcCHoZ1epN5zyfsjqFEY8XlylHTU/WSI3SS9KIGuBqWf6/haoYD7BH+f2g56GMHvBEmGjk5cf/lrCpqiho7Z3fGgJcYf3fRWM3qSVUM9JyHUIqPS6oPZIp7zP40TztiK4Oeen4EpcS/KdoSdu5CjfgMYgF/qdlL28ntgnVYhcA/6IDSRg6V4H3b20qjsn3NlaNVdsSNCu3GzkvM/dtvp5I/41XcFCNqMOljMr3tRw2ZVo44/1vYW0FB0b0FjhjNcnMyTOQjSRR78zetdoorewTJdEmxthMieHIw1Mqzwg4e6JvsC30sh1uSaFq4FHrj2Fe6lAlgwPs1e9vx4w0Zs0kxxusNAdbBB8FH8paFuUEGjgT0Jo9KHOLtvRy+OU2OacQePuhG1kGBRvJz7O4/prAFLGWIW8tyZDnMCuv1vmk6YZd6ih3omkL178X94pjzavtlUip/ugF0NIwS5o+zucRow9txAX2jXgDCM=" + file_glob: true + file: wheelhouse/sourmash*.whl + skip_cleanup: true + on: + tags: true + - <<: *wheel + arch: ppc64le stages: - - check - - test + - test_ipfs - wheel