I am trying this experimental feature for the first time as I need a .deb
from the Ookla Speedtest CLI repo.
I’m following these instructions: https://snapcraft.io/docs/release-notes-snapcraft-4-0#Package
Here’s my current yaml
:
name: spdtest
version: 'latest'
summary: Internet speed test
description: |
Internet speeds are tested against random servers from speedtest.net at an timed interval (defined by user).
If slow speed (defined by user) is detected, then runs a number of download and upload test with optional route tests to servers and writes to a logfile.
base: core18
grade: stable
confinement: strict
license: Apache-2.0
apps:
spdtest:
command: sh /usr/bin/spdtest.sh
environment:
LC_ALL: C.UTF-8
plugs:
- network
- network-bind
- home
package-repositories:
- type: apt
deb-types:
- deb
name: generic
components:
- main
key-id: 379CE192D401AB61
url: https://ookla.bintray.com/debian
parts:
spdtest:
source: https://github.com/aristocratos/spdtest.sh
source-type: git
plugin: nil
build-packages:
- speedtest-cli
- python3
- jq
- grc
- mtr
- less
- gnupg1
- apt-transport-https
- dirmngr
stage-packages:
- speedtest-cli
- python3
- jq
- grc
- mtr
- less
- gnupg1
- apt-transport-https
- dirmngr
publish:
plugin: dump
source: .
organize:
./spdtest.sh: /usr/bin/spdtest.sh
Here’s the error I am getting when attempting to build with snapcraft.io:
RuntimeError: invalid deb repository object: OrderedDict([('type', 'apt'), ('deb-types', ['deb']), ('name', 'generic'), ('components', ['main']), ('key-id', '379CE192D401AB61'), ('url', 'https://ookla.bintray.com/debian')]) (invalid suites)