mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
.builds: don't set EGL_PLATFORM for chrome tests
EGL_PLATFORM=surfaceless allows rendering tests to complete in headless mode. However, the headless chrome tests fail with that setting. Change the linux builder to only set the variable when needed. Enable verbose output of tests while here. We can keep an eye on skipped tests that way. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+2
-2
@@ -18,7 +18,7 @@ tasks:
|
||||
curl https://dl.google.com/go/go1.14.freebsd-amd64.tar.gz | tar -C /home/build/sdk -xzf -
|
||||
- test_gio: |
|
||||
cd gio
|
||||
go test ./...
|
||||
go test -v ./...
|
||||
- test_cmd: |
|
||||
cd gio/cmd
|
||||
go test ./...
|
||||
go test -v ./...
|
||||
|
||||
+6
-6
@@ -30,7 +30,6 @@ environment:
|
||||
GOFLAGS: -mod=readonly
|
||||
PATH: /home/build/sdk/go/bin:/usr/bin:/home/build/go/bin:/home/build/android/tools/bin
|
||||
ANDROID_SDK_ROOT: /home/build/android
|
||||
EGL_PLATFORM: surfaceless # for headless tests
|
||||
android_sdk_tools_zip: sdk-tools-linux-3859397.zip
|
||||
android_ndk_zip: android-ndk-r20-linux-x86_64.zip
|
||||
github_mirror: git@github.com:gioui/gio
|
||||
@@ -42,8 +41,9 @@ tasks:
|
||||
curl https://dl.google.com/go/go1.14.linux-amd64.tar.gz | tar -C /home/build/sdk -xzf -
|
||||
- test_gio: |
|
||||
cd gio
|
||||
go test -race ./...
|
||||
GOOS=windows go test -exec=wine ./...
|
||||
export EGL_PLATFORM=surfaceless # for headless tests
|
||||
go test -race -v ./...
|
||||
GOOS=windows go test -exec=wine -v ./...
|
||||
GOOS=js GOARCH=wasm go build -o /dev/null ./...
|
||||
- install_chrome: |
|
||||
curl -s https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
|
||||
@@ -52,10 +52,10 @@ tasks:
|
||||
sudo apt install -y google-chrome-stable
|
||||
- test_cmd: |
|
||||
cd gio/cmd
|
||||
go test ./...
|
||||
go test -race ./...
|
||||
go test -v ./...
|
||||
go test -race -v ./...
|
||||
cd gogio # since we need -modfile to point at the parent directory
|
||||
GOFLAGS=-modfile=../go.local.mod go test
|
||||
GOFLAGS=-modfile=../go.local.mod go test -v
|
||||
- install_jdk8: |
|
||||
curl -so jdk.deb "https://cdn.azul.com/zulu/bin/zulu8.42.0.21-ca-jdk8.0.232-linux_amd64.deb"
|
||||
sudo apt install -y -f ./jdk.deb
|
||||
|
||||
+2
-2
@@ -15,7 +15,7 @@ tasks:
|
||||
./make.bash
|
||||
- test_gio: |
|
||||
cd gio
|
||||
go test ./...
|
||||
go test -v ./...
|
||||
- test_cmd: |
|
||||
cd gio/cmd
|
||||
go test ./...
|
||||
go test -v ./...
|
||||
|
||||
Reference in New Issue
Block a user