Skip to content

Commit

Permalink
deploy: snap: timeout after 10 min (iterative#3547)
Browse files Browse the repository at this point in the history
Because `snapcraft push` hangs on cloud CI.
Imagine if `git push` did the same!
  • Loading branch information
casperdcl authored Mar 29, 2020
1 parent acdc876 commit 1ff4706
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 1ff4706

Please sign in to comment.