~priegger/go-hello-world

38cb1986f07c51c891e30d2d591af9cb90612895 — Philipp Riegger 4 years ago dd82a0d feature/annotations
wip
1 files changed, 27 insertions(+), 0 deletions(-)

A .builds/nixos.yml
A .builds/nixos.yml => .builds/nixos.yml +27 -0
@@ 0,0 1,27 @@
image: nixos/latest
repositories:
  nixpkgs: https://nixos.org/channels/nixos-unstable
  priegger-nur-packages: https://git.sr.ht/~priegger/nur-packages/archive/master.tar.gz
packages:
  - nixpkgs.go
  - priegger-nur-packages.annotatego
sources:
  - https://git.sr.ht/~priegger/go-hello-world
environment:
  CGO_ENABLED: 0
tasks:
  - build: |
      cd go-hello-world
      go build -v
  - test: |
      cd go-hello-world
      go test
  - deploy: |
      cd go-hello-world
      tar -cJf go-hello-world.tar.xz go-hello-world
  - annotate: |
      cd go-hello-world
      annotatego -v ... > annotations.json
artifacts:
  - go-hello-world/go-hello-world.tar.xz
  - go-hello-world/annotations.json