mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 17:05:38 +00:00
8fab2f8cb1
Add fedora.yml for testing on linux and windows. Add android.yml for testing `gogio -target android`. Add a build badge to the README. Signed-off-by: Elias Naur <mail@eliasnaur.com>
34 lines
678 B
YAML
34 lines
678 B
YAML
image: fedora/latest
|
|
packages:
|
|
- tar
|
|
- wayland-devel
|
|
- libX11-devel
|
|
- libxkbcommon-devel
|
|
- mesa-libGLES-devel
|
|
- mesa-libEGL-devel
|
|
- chromium
|
|
- wine
|
|
sources:
|
|
- https://git.sr.ht/~eliasnaur/gio
|
|
environment:
|
|
PATH: $PATH:/usr/bin:/home/build/goroot/go/bin
|
|
tasks:
|
|
- install_go: |
|
|
mkdir goroot
|
|
cd goroot
|
|
curl -s -o go.tar.gz https://dl.google.com/go/go1.13.3.linux-amd64.tar.gz
|
|
tar xzf go.tar.gz
|
|
- test_gio: |
|
|
cd gio
|
|
go test ./...
|
|
GOOS=windows go test -exec=wine ./...
|
|
- test_example: |
|
|
cd gio/example
|
|
go test ./...
|
|
- test_cmd: |
|
|
cd gio/cmd
|
|
go test ./...
|
|
- check_gofmt: |
|
|
cd gio
|
|
test -z $(gofmt -s -l .)
|