Commit Graph

23 Commits

Author SHA1 Message Date
Elias Naur b4f73b3ef7 .builds: add missing xkbcommon-x11 dependency
The dependency was added when merging the X11 and Wayland keyboard
handling.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-11-28 12:09:29 +01:00
Elias Naur e16712321f .builds: use gotip on freebsd builder
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-11-08 12:45:25 +01:00
Elias Naur e683b19b29 .builds: use Go 1.14 for the basic tests
WebAssembly builds require Go 1.14 since the breaking change in Go,
golang.org/cl/203600.

gofmt -w -s . as well.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-11-06 18:35:44 +01:00
Elias Naur 4719d56f86 .builds: fix go fmt test and go fmt -w -s .
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-11-05 12:50:07 +01:00
Daniel Martí 4d7c89fec3 cmd/gogio: simplify the test -race setup
In an earlier commit, we made it possible to run the e2e tests with the
race detector enabled everywhere via GOFLAGS=-race go test.

However, that's not at all standard; most users will simply use 'go test
-race'. Moreover, having 'go test -race' run the test program with the
race detector, but not the e2e gio app, is a bit useless.

Instead, have the tests detect when they run with the race detector, and
enable the race detector in the test app too. As before, the JS test is
skipped whenever -race is used.

This also means we can test with -race in the same way in each of the
modules, which simplifies CI.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
2019-11-04 22:21:21 +01:00
Elias Naur 2bee95358a .builds: run the cmd tests with and without -race
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-11-03 13:06:14 +01:00
Elias Naur cc4b407647 .build,cmd: add -race to test programs
It's not possible to set GOFLAGS=-race because some programs are
built for webassembly where -race is not supported.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-11-03 12:09:02 +01:00
Elias Naur b3635c78ee .builds: add sway as dependency for Wayland end-to-end test
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-11-02 18:55:31 +01:00
Elias Naur 06aa0da2a2 .builds: add scrot to the linux image for the X11 end-to-end test
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-11-02 10:43:50 +01:00
Elias Naur 837b5f6bab .builds: install xdotool in the linux builder to satisfy the X11 test
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-11-01 22:27:42 +01:00
Elias Naur f418684c0e .builds: set GOFLAGS=-mod=readonly to catch stale go.mod files
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-11-01 18:00:28 +01:00
Elias Naur 6bbfe288aa .builds: remove go fmt test from freebsd image
There is no reason to run platform independent tests on FreeBSD.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-10-30 14:11:24 +01:00
Elias Naur 3425b25ecc app/internal: add FreeBSD support
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-10-30 14:01:02 +01:00
Elias Naur c131a7f423 .builds: remove existing $PATH from PATH settings
$PATH is not expanded anyway, and it's better to be explicit.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-10-30 11:49:44 +01:00
Elias Naur 7939f142bd .builds: remove unused path from PATH
It was left over from when the builds didn't use the distro version
of Go.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-10-30 11:41:24 +01:00
Elias Naur fe54f3df4e .builds: add xvfb package to the linux builder for X11 end-to-end test
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-10-29 20:04:47 +01:00
Elias Naur b8edf2ee04 .builds: switch from fedora/latest to debian/testing
Fedora builds kept failing at package installation. See
~sircmpwn/builds.sr.ht#220.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-10-29 17:48:12 +01:00
Elias Naur 2eb233dda6 .builds: remove -v from a tar command
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-10-29 01:45:05 +01:00
Elias Naur 9671406cdd .builds: combine curl and tar to avoid temporary files
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-10-29 01:20:38 +01:00
Elias Naur 48e0a5315d .builds: fix apple.yml again
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-10-28 22:40:45 +01:00
Elias Naur f353c8c780 .builds: fix apple.yml builder
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-10-28 22:15:45 +01:00
Elias Naur 754db8c3d7 .builds: add macOS+iOS builder
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-10-28 22:08:27 +01:00
Elias Naur 8fab2f8cb1 .builds: add automatic testing script
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>
2019-10-27 19:12:50 +01:00