Skip to content

Commit 0ad3548

Browse files
authored
Merge pull request #3063 from casperdcl/snap-classic
Snap classic deployment
2 parents 19f408b + be762e7 commit 0ad3548

File tree

2 files changed

+27
-28
lines changed

2 files changed

+27
-28
lines changed

.travis.yml

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -75,25 +75,6 @@ jobs:
7575
language: python
7676
python: 3.7
7777
script: ./scripts/build_package.sh
78-
- name: Snapcraft snap
79-
addons:
80-
snaps:
81-
- name: snapcraft
82-
channel: stable
83-
confinement: classic
84-
- name: lxd
85-
channel: stable
86-
env:
87-
- SNAPCRAFT_IMAGE_INFO: '{"build_url": "$TRAVIS_BUILD_URL"}'
88-
before_install:
89-
- sudo /snap/bin/lxd.migrate -yes
90-
- sudo /snap/bin/lxd waitready
91-
- sudo /snap/bin/lxd init --auto
92-
install:
93-
script:
94-
- sudo snapcraft --use-lxd
95-
after_failure:
96-
- sudo journalctl -u snapd
9778
# deploy jobs
9879
- name: "Pypi pkgs"
9980
if: tag is present
@@ -116,6 +97,30 @@ jobs:
11697
on:
11798
tags: true
11899
repo: iterative/dvc
100+
- name: Snapcraft snap
101+
addons:
102+
snaps:
103+
- name: snapcraft
104+
channel: stable
105+
confinement: classic
106+
- name: lxd
107+
channel: stable
108+
env:
109+
- SNAPCRAFT_IMAGE_INFO: '{"build_url": "$TRAVIS_BUILD_URL"}'
110+
before_install:
111+
- sudo /snap/bin/lxd.migrate -yes
112+
- sudo /snap/bin/lxd waitready
113+
- sudo /snap/bin/lxd init --auto
114+
install:
115+
script:
116+
- sudo snapcraft --use-lxd
117+
after_failure:
118+
- sudo journalctl -u snapd
119+
deploy:
120+
- provider: snap
121+
snap: dvc_*.snap
122+
channel: ${SOURCE_TAG:+stable}${SOURCE_TAG:-edge}
123+
skip_cleanup: true
119124

120125
before_install:
121126
- bash ./scripts/ci/before_install.sh
@@ -136,7 +141,6 @@ deploy:
136141
- dvc*.deb
137142
- dvc*.pkg
138143
- dvc*.exe
139-
- dvc*.snap
140144
skip_cleanup: true
141145
on:
142146
tags: true

README.rst

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,17 +153,12 @@ Currently, this includes support for Python versions 2.7, 3.6 and 3.7.
153153
Snap (Snapcraft)
154154
----------------
155155

156-
Download the latest ``dvc_*.snap`` from the
157-
GitHub `releases page <https://github.com/iterative/dvc/releases>`_.
158-
159156
.. code-block:: bash
160157
161-
snap install dvc_*.snap --dangerous --classic
158+
snap install dvc --classic
162159
163-
Once ``dvc`` is released on the snap store
164-
(`pending request <https://forum.snapcraft.io/t/classic-confinement-request-for-dvc/14124>`_)
165-
there will be no need to download ``dvc_*.snap`` or use ``--dangerous``
166-
(``snap install dvc --classic`` would suffice).
160+
This corresponds to the latest tagged release.
161+
Add ``--edge`` for the latest ``master`` version.
167162

168163
Package
169164
-------

0 commit comments

Comments
 (0)