Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (34 sloc) 1.18 KB
language: bash
dist: xenial
# SNAPCRAFT_IMAGE_INFO - build traceability
# SNAPCRAFT_BUILD_INFO - build manifest and security notifications (https://snapcraft.io/blog/introducing-developer-notifications-for-snap-security-updates)
# SNAPCRAFT_ENABLE_SILENT_REPORT - automated sentry reports for the snapcraft team
env:
global:
- LC_ALL: C.UTF-8
- LANG: C.UTF-8
- SNAPCRAFT_ENABLE_SILENT_REPORT: y
- SNAPCRAFT_BUILD_INFO: y
- SNAPCRAFT_IMAGE_INFO: '{"build_url": "$TRAVIS_BUILD_URL"}'
addons:
snaps:
- name: snapcraft
channel: stable
confinement: classic
- name: lxd
channel: stable
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=$(if [ -n "$SOURCE_TAG" ]; then echo $SOURCE_TAG | sed -E "s/v([0-9]+)\.([0-9]+)\.[0-9]+(-rc[0-9]+)?/\1\.\2/" ; fi)'
deploy:
provider: snap
snap: cmake_*.snap
channel: ${SNAP_DEPLOY_TRACK:-latest}/edge
skip_cleanup: true
You can’t perform that action at this time.