deploy: snap: timeout after 10 min (#3547)

Because `snapcraft push` hangs on cloud CI.
Imagine if `git push` did the same!
This commit is contained in:
Casper da Costa-Luis
2020-03-29 16:33:51 +03:00
committed by GitHub
parent acdc8763c6
commit 1ff4706f3a
+2 -3
View File
@@ -151,10 +151,9 @@ deploy:
tags: true
repo: iterative/dvc
stage: build
- provider: snap
snap: dvc_*.snap
channel: $SNAP_CHANNEL
- provider: script
skip_cleanup: true
script: "timeout 600 snapcraft push dvc_*.snap --release $SNAP_CHANNEL || echo timed out"
on:
all_branches: true
condition: "$(./scripts/ci/deploy_condition.sh dvc_*.snap) && ($TRAVIS_BRANCH = master || -n $TRAVIS_TAG)"