Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ jobs:
python: 3.7
script: ./scripts/build_package.sh
- name: Snapcraft snap
language: python
python: 3.7
addons:
snaps:
- name: snapcraft
Expand All @@ -83,11 +85,10 @@ jobs:
channel: stable
env:
- SNAPCRAFT_IMAGE_INFO: '{"build_url": "$TRAVIS_BUILD_URL"}'
before_install:
install:
- sudo /snap/bin/lxd.migrate -yes
- sudo /snap/bin/lxd waitready
- sudo /snap/bin/lxd init --auto
install:
script:
- ./scripts/build_snap.sh
after_failure:
Expand Down Expand Up @@ -135,7 +136,7 @@ deploy:
stage: build
- provider: snap
snap: dvc_*.snap
channel: $RELEASE_SNAP_CHANNEL
channel: $SNAP_CHANNEL
skip_cleanup: true
on:
all_branches: true
Expand Down
4 changes: 2 additions & 2 deletions scripts/ci/before_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
fi

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