initial snap support

This commit is contained in:
Casper da Costa-Luis
2019-11-12 00:05:58 +00:00
parent e18fe609cb
commit 8c17ec14f9
2 changed files with 43 additions and 0 deletions
+25
View File
@@ -109,6 +109,31 @@ jobs:
on:
tags: true
repo: iterative/dvc
- name: Snapcraft snap
addons:
snaps:
- name: snapcraft
channel: stable
confinement: classic
- name: lxd
channel: stable
env:
- SNAPCRAFT_IMAGE_INFO: '{"build_url": "$TRAVIS_BUILD_URL"}'
script:
- sudo /snap/bin/lxd.migrate -yes
- sudo /snap/bin/lxd waitready
- sudo /snap/bin/lxd init --auto
- 'if [ -n "$SOURCE_TAG" ]; then sed -i "s/source-branch.*/source-tag: $SOURCE_TAG/" snap/snapcraft.yaml ; fi'
- sudo snapcraft --use-lxd
after_failure:
- sudo journalctl -u snapd
before_deploy:
- export SNAP_DEPLOY_TRACK="$SOURCE_TAG"
deploy:
- provider: snap
snap: dvc_*.snap
channel: ${SOURCE_TAG:-latest}/edge
skip_cleanup: true
before_install:
- bash ./scripts/ci/before_install.sh
+18
View File
@@ -0,0 +1,18 @@
name: dvc
summary: Data Version Control
description: |
Git for Data & Models https://dvc.org
adopt-info: dvc
grade: stable
confinement: strict
base: core18
license: Apache-2.0
parts:
dvc:
plugin: python
python-version: python3
source: .
parse-info: [setup.py]
apps:
dvc:
command: bin/dvc