forked from joejulian/gio
150b34aede
It passes now, thanks to the recent work to add retries to screenshots. If it turns out to still not be reliable enough, we can look at this again. Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
image: debian/unstable # TODO(mvdan): switch back to testing once sway hits that repo
|
|
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
|
|
sources:
|
|
- https://git.sr.ht/~eliasnaur/gio
|
|
environment:
|
|
GOFLAGS: -mod=readonly
|
|
PATH: /home/build/sdk/go/bin:/usr/bin
|
|
tasks:
|
|
- install_go1_14rc1: |
|
|
mkdir -p /home/build/sdk
|
|
curl https://dl.google.com/go/go1.14rc1.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 .)"
|