Files
gio/.builds/linux.yml
T
Chris Waldon daecdcaabf ci: add skeleton for sourcehut annotations
This commit adds the necessary task to the CI job to generate sourcehut
annotations as documented here:

https://man.sr.ht/git.sr.ht/annotations.md

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
2020-03-15 09:30:37 +01:00

59 lines
1.4 KiB
YAML

image: debian/testing
packages:
- curl
- pkg-config
- libwayland-dev
- libx11-dev
- libx11-xcb-dev
- libxkbcommon-dev
- libxkbcommon-x11-dev
- libgles2-mesa-dev
- libegl1-mesa-dev
- libxcursor-dev
- libxrandr-dev
- libxinerama-dev
- libxi-dev
- libxxf86vm-dev
- wine
- xvfb
- xdotool
- scrot
- sway
- grim
- wine
sources:
- https://git.sr.ht/~eliasnaur/gio
secrets:
- 0dd5efdf-400e-4735-8320-98b44844dfd0
environment:
GOFLAGS: -mod=readonly
PATH: /home/build/sdk/go/bin:/usr/bin
tasks:
- install_go1_14: |
mkdir -p /home/build/sdk
curl https://dl.google.com/go/go1.14.linux-amd64.tar.gz | tar -C /home/build/sdk -xzf -
- install_chrome: |
curl -s https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt update
sudo apt install -y google-chrome-stable
- test_gio: |
cd gio
go test -race ./...
GOOS=windows go test -exec=wine ./...
- test_cmd: |
cd gio/cmd
go test ./...
go test -race ./...
- test_example: |
cd gio/example
go test -race ./...
- check_gofmt: |
cd gio
test -z "$(gofmt -s -l .)"
- annotate: |
go get git.sr.ht/~sircmpwn/annotatego
cd gio
~/go/bin/annotatego -v -T gioui.org... > annotations.json
../upload-annotations annotations.json eliasnaur gio