Skip to content

Commit

Permalink
Merge pull request #3212 from casperdcl/snap-deploy
Browse files Browse the repository at this point in the history
another attempt at travis dpl snap
  • Loading branch information
efiop authored Jan 22, 2020
2 parents b99c5e4 + 66ad722 commit 000c524
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
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

0 comments on commit 000c524

Please sign in to comment.