diff --git a/.travis.yml b/.travis.yml index 46643ae1b3..971a2bb9e6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/scripts/ci/before_install.sh b/scripts/ci/before_install.sh index bf0f1b4c98..2e9461be41 100644 --- a/scripts/ci/before_install.sh +++ b/scripts/ci/before_install.sh @@ -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