github.com/ubuntu/ubuntu-report@v1.7.4-0.20240410144652-96f37d845fac/snap/snapcraft.yaml (about)

     1  name: ubuntu-report
     2  version: '1.0'
     3  summary: Report hardware and other collected metrics
     4  description: |
     5    Command line tool to report hardware and other collected metrics like
     6    installer or upgrade information.
     7    .
     8    Those information can't be used to identify a single machine and are
     9    presented before being sent to the server.
    10    More details on https://github.com/ubuntu/ubuntu-report
    11  grade: stable
    12  confinement: classic
    13  base: core18
    14  
    15  apps:
    16    ubuntu-report:
    17      command: bin/ubuntu-report
    18      completer: bash-completion
    19  
    20  parts:
    21    cli:
    22      source: .
    23      plugin: go
    24      go-importpath: github.com/ubuntu/ubuntu-report
    25      override-build: |
    26        snapcraftctl build
    27        GOPATH=`pwd`/../go/ go generate cmd/ubuntu-report/generate_test.go
    28        cp build/bash-completion $SNAPCRAFT_PART_INSTALL/
    29      stage:
    30        - bin/ubuntu-report
    31        - bash-completion
    32    tests:
    33      plugin: nil
    34      after: [cli]
    35      override-build: |
    36        cd ../../cli/go/src/github.com/ubuntu/ubuntu-report
    37        GOPATH=`pwd`/../../../.. go test ./...