File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
5252fi
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
You can’t perform that action at this time.
0 commit comments