Skip to content

Commit 7d1e48c

Browse files
committed
arm64 azure cli does not work
1 parent b023344 commit 7d1e48c

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.travis.yml

+12-10
Original file line numberDiff line numberDiff line change
@@ -971,18 +971,20 @@ after_success: |
971971
972972
# Save to Azure storage always
973973
974-
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
975-
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
976-
else
977-
brew install azure-cli
978-
fi
974+
if [[ $TRAVIS_CPU_ARCH != "arm64" ]]; then
975+
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
976+
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
977+
else
978+
brew install azure-cli
979+
fi
979980
980-
az storage container create -n ${TRAVIS_COMMIT} --public-access blob
981+
az storage container create -n ${TRAVIS_COMMIT} --public-access blob
981982
982-
if [[ $SDIST == 1 ]]; then
983-
az storage blob upload-batch -d ${TRAVIS_COMMIT} -s ${TRAVIS_BUILD_DIR}/dist --pattern *.gz
984-
else
985-
az storage blob upload-batch -d ${TRAVIS_COMMIT} -s ${TRAVIS_BUILD_DIR}/wheelhouse --pattern opencv*.whl
983+
if [[ $SDIST == 1 ]]; then
984+
az storage blob upload-batch -d ${TRAVIS_COMMIT} -s ${TRAVIS_BUILD_DIR}/dist --pattern *.gz
985+
else
986+
az storage blob upload-batch -d ${TRAVIS_COMMIT} -s ${TRAVIS_BUILD_DIR}/wheelhouse --pattern opencv*.whl
987+
fi
986988
fi
987989
988990
set +x

0 commit comments

Comments
 (0)