Merge pull request #3212 from casperdcl/snap-deploy

another attempt at travis dpl snap
This commit is contained in:
Ruslan Kuprieiev
2020-01-22 21:01:56 +02:00
committed by GitHub
2 changed files with 6 additions and 5 deletions
+4 -3
View File
@@ -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
@@ -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:
@@ -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
+2 -2
View File
@@ -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