Skip to content

Commit f80626b

Browse files
committed
recompress conditional snap channel
1 parent de358d6 commit f80626b

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

.travis.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -135,19 +135,10 @@ deploy:
135135
stage: build
136136
- provider: snap
137137
snap: dvc_*.snap
138-
channel: stable
138+
channel: $SNAP_CHANNEL
139139
skip_cleanup: true
140140
on:
141-
condition: "$(./scripts/ci/deploy_condition.sh dvc_*.snap)"
142-
tags: true
143-
repo: iterative/dvc
144-
stage: build
145-
- provider: snap
146-
snap: dvc_*.snap
147-
channel: edge
148-
skip_cleanup: true
149-
on:
150-
branch: master
151-
condition: "$(./scripts/ci/deploy_condition.sh dvc_*.snap)"
141+
all_branches: true
142+
condition: "$(./scripts/ci/deploy_condition.sh dvc_*.snap) && ($TRAVIS_BRANCH = master || -n $TRAVIS_TAG)"
152143
repo: iterative/dvc
153144
stage: build

scripts/ci/before_install.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,9 @@ elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
5050
ln -s -f /usr/local/bin/python3 /usr/local/bin/python
5151
ln -s -f /usr/local/bin/pip3 /usr/local/bin/pip
5252
fi
53+
54+
if [[ -n "$TRAVIS_TAG" ]]; then
55+
echo "export SNAP_CHANNEL=stable" >> env.sh
56+
else
57+
echo "export SNAP_CHANNEL=edge" >> env.sh
58+
fi

0 commit comments

Comments
 (0)