fix snap builds

This commit is contained in:
Casper da Costa-Luis 2020-06-10 20:38:27 +01:00
parent fac85caa16
commit a80f0a647d
No known key found for this signature in database
GPG Key ID: 986B408043AE090D
1 changed files with 8 additions and 2 deletions

View File

@ -187,18 +187,24 @@ jobs:
- name: snapcraft
channel: stable
confinement: classic
- name: review-tools
channel: stable
- name: lxd
channel: stable
env:
- SNAPCRAFT_IMAGE_INFO: '{"build_url": "$TRAVIS_BUILD_URL"}'
- SNAPCRAFT_IMAGE_INFO: |
'{"build_url": "$TRAVIS_JOB_WEB_URL"}'
- SNAPCRAFT_BUILD_ENVIRONMENT: lxd
- SNAPCRAFT_BUILD_INFO: 1 # https://snapcraft.io/blog/introducing-developer-notifications-for-snap-security-updates
before_install:
- sudo usermod --append --groups lxd $USER
- sudo /snap/bin/lxd.migrate -yes
- sudo /snap/bin/lxd waitready
- sudo /snap/bin/lxd init --auto
install:
- make snapcraft.yaml
script:
- sudo snapcraft --use-lxd
- sg lxd -c snapcraft
after_failure:
- sudo journalctl -u snapd
deploy: