diff options
author | mattip <matti.picus@gmail.com> | 2022-11-28 15:53:37 +0200 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2022-11-28 17:13:59 +0200 |
commit | 407ff757c9b8c40f417962d113192244f4f222aa (patch) | |
tree | f7e5424b464eb17d97e5211033fe2a6c0b5ebe05 /tools | |
parent | bba74740e5236735f6ec5013d8d778145b758e89 (diff) | |
download | numpy-407ff757c9b8c40f417962d113192244f4f222aa.tar.gz |
BUILD: disable aarch64 on travis, parse CIRRUS env variables for wheel upload
Diffstat (limited to 'tools')
-rw-r--r-- | tools/wheels/upload_wheels.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/wheels/upload_wheels.sh b/tools/wheels/upload_wheels.sh index d65492ee7..4c650edaa 100644 --- a/tools/wheels/upload_wheels.sh +++ b/tools/wheels/upload_wheels.sh @@ -1,15 +1,19 @@ set_travis_vars() { # Set env vars echo "TRAVIS_EVENT_TYPE is $TRAVIS_EVENT_TYPE" + echo CIRRUS_TASK_NAME is "$CIRRUS_TASK_NAME" echo "TRAVIS_TAG is $TRAVIS_TAG" + echo "CIRRUS_TAG is $CIRRUS_TAG" if [[ "$TRAVIS_EVENT_TYPE" == "push" && "$TRAVIS_TAG" == v* ]]; then IS_PUSH="true" + elif [[ "$CIRRUS_TASK_NAME" == "push" && "$CIRRUS_TAG" == v* ]]; then + IS_PUSH="true" else IS_PUSH="false" fi - if [[ "$TRAVIS_EVENT_TYPE" == "cron" ]]; then + if [[ "$TRAVIS_EVENT_TYPE" == "cron" || -v CIRRUS_CRON ]]; then IS_SCHEDULE_DISPATCH="true" - elif [[ "$TRAVIS_EVENT_TYPE" == "api" ]]; then + elif [[ "$TRAVIS_EVENT_TYPE" == "api" || "$CIRRUS_API_CREATED" == "true" ]]; then # Manual CI run, so upload IS_SCHEDULE_DISPATCH="true" else |