AMD64
Shell
Git
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: http
- name: transfer
- name: lxd
channel: stable
script:
- sudo /snap/bin/lxd.migrate -yes
- sudo /snap/bin/lxd waitready
- sudo /snap/bin/lxd init --auto
- sudo snapcraft --use-lxd
after_failure:
- sudo journalctl -u snapd
- http https://api.snapcraft.io/v2/snaps/info/core architecture==amd64 Snap-Device-Series:16
Build Config
{
"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\"}"
}
]
},
"dist": "xenial",
"addons": {
"snaps": [
{
"name": "snapcraft",
"channel": "stable",
"confinement": "classic"
},
{
"name": "http"
},
{
"name": "transfer"
},
{
"name": "lxd",
"channel": "stable"
}
]
},
"script": [
"sudo /snap/bin/lxd.migrate -yes",
"sudo /snap/bin/lxd waitready",
"sudo /snap/bin/lxd init --auto",
"sudo snapcraft --use-lxd"
],
"language": "bash",
"after_failure": [
"sudo journalctl -u snapd",
"http https://api.snapcraft.io/v2/snaps/info/core architecture==amd64 Snap-Device-Series:16"
]
}