Travis: use force to overwrite tag

pull/783/head
Koen Schmeets 2020-10-25 21:00:40 +01:00
parent 57f8b37270
commit 5388e10649
2 changed files with 4 additions and 10 deletions

View File

@ -26,7 +26,7 @@ jobs:
- git config --local user.name "solvespace-cd" - git config --local user.name "solvespace-cd"
- git config --local user.email "no-reply@solvespace.com" - git config --local user.email "no-reply@solvespace.com"
- export TRAVIS_TAG=${TRAVIS_TAG:-edge} - export TRAVIS_TAG=${TRAVIS_TAG:-edge}
- git tag $TRAVIS_TAG - git tag --force $TRAVIS_TAG
deploy: deploy:
provider: releases provider: releases
skip_cleanup: true skip_cleanup: true
@ -36,8 +36,6 @@ jobs:
name: ${TRAVIS_TAG:-edge} name: ${TRAVIS_TAG:-edge}
release_notes: $TRAVIS_COMMIT_MESSAGE release_notes: $TRAVIS_COMMIT_MESSAGE
file: build/bin/SolveSpace.dmg file: build/bin/SolveSpace.dmg
on:
repo: solvespace/solvespace
- stage: test - stage: test
name: "Ubuntu" name: "Ubuntu"
os: linux os: linux
@ -58,7 +56,7 @@ jobs:
- git config --local user.name "solvespace-cd" - git config --local user.name "solvespace-cd"
- git config --local user.email "no-reply@solvespace.com" - git config --local user.email "no-reply@solvespace.com"
- export TRAVIS_TAG=${TRAVIS_TAG:-edge} - export TRAVIS_TAG=${TRAVIS_TAG:-edge}
- git tag $TRAVIS_TAG - git tag --force $TRAVIS_TAG
deploy: deploy:
provider: releases provider: releases
skip_cleanup: true skip_cleanup: true
@ -68,8 +66,6 @@ jobs:
name: ${TRAVIS_TAG:-edge} name: ${TRAVIS_TAG:-edge}
release_notes: $TRAVIS_COMMIT_MESSAGE release_notes: $TRAVIS_COMMIT_MESSAGE
file: build/bin/RelWithDebInfo/solvespace.exe file: build/bin/RelWithDebInfo/solvespace.exe
on:
repo: solvespace/solvespace
- stage: deploy - stage: deploy
name: "Windows with OpenMP" name: "Windows with OpenMP"
os: windows os: windows
@ -79,7 +75,7 @@ jobs:
- git config --local user.name "solvespace-cd" - git config --local user.name "solvespace-cd"
- git config --local user.email "no-reply@solvespace.com" - git config --local user.email "no-reply@solvespace.com"
- export TRAVIS_TAG=${TRAVIS_TAG:-edge} - export TRAVIS_TAG=${TRAVIS_TAG:-edge}
- git tag $TRAVIS_TAG - git tag --force $TRAVIS_TAG
deploy: deploy:
provider: releases provider: releases
skip_cleanup: true skip_cleanup: true
@ -89,8 +85,6 @@ jobs:
name: ${TRAVIS_TAG:-edge} name: ${TRAVIS_TAG:-edge}
release_notes: $TRAVIS_COMMIT_MESSAGE release_notes: $TRAVIS_COMMIT_MESSAGE
file: build/bin/RelWithDebInfo/solvespace-openmp.exe file: build/bin/RelWithDebInfo/solvespace-openmp.exe
on:
repo: solvespace/solvespace
- &deploy-snap - &deploy-snap
stage: deploy stage: deploy
name: Snap amd64 name: Snap amd64

View File

@ -46,7 +46,7 @@ for (( ; ; ))
do do
echo "Checking progress..." echo "Checking progress..."
progress=$(xcrun altool --notarization-info "${notarize_uuid}" -u "${MACOS_APPSTORE_USERNAME}" -p "${MACOS_APPSTORE_APP_PASSWORD}" 2>&1) progress=$(xcrun altool --notarization-info "${notarize_uuid}" -u "${MACOS_APPSTORE_USERNAME}" -p "${MACOS_APPSTORE_APP_PASSWORD}" 2>&1)
echo "${progress}" # echo "${progress}"
if [ $? -ne 0 ] || [[ "${progress}" =~ "Invalid" ]] ; then if [ $? -ne 0 ] || [[ "${progress}" =~ "Invalid" ]] ; then
echo "Error with notarization. Exiting" echo "Error with notarization. Exiting"