Skip to content

Commit

Permalink
recompress conditional snap channel
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Jan 19, 2020
1 parent de358d6 commit f80626b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,19 +135,10 @@ deploy:
stage: build
- provider: snap
snap: dvc_*.snap
channel: stable
channel: $SNAP_CHANNEL
skip_cleanup: true
on:
condition: "$(./scripts/ci/deploy_condition.sh dvc_*.snap)"
tags: true
repo: iterative/dvc
stage: build
- provider: snap
snap: dvc_*.snap
channel: edge
skip_cleanup: true
on:
branch: master
condition: "$(./scripts/ci/deploy_condition.sh dvc_*.snap)"
all_branches: true
condition: "$(./scripts/ci/deploy_condition.sh dvc_*.snap) && ($TRAVIS_BRANCH = master || -n $TRAVIS_TAG)"
repo: iterative/dvc
stage: build
6 changes: 6 additions & 0 deletions scripts/ci/before_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,9 @@ elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
ln -s -f /usr/local/bin/python3 /usr/local/bin/python
ln -s -f /usr/local/bin/pip3 /usr/local/bin/pip
fi

if [[ -n "$TRAVIS_TAG" ]]; then
echo "export SNAP_CHANNEL=stable" >> env.sh
else
echo "export SNAP_CHANNEL=edge" >> env.sh
fi

0 comments on commit f80626b

Please sign in to comment.