.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:
Elias Naur
2021-02-18 08:33:42 +01:00
parent 3987815469
commit 33a1c4722a
3 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ tasks:
curl https://dl.google.com/go/go1.14.freebsd-amd64.tar.gz | tar -C /home/build/sdk -xzf - curl https://dl.google.com/go/go1.14.freebsd-amd64.tar.gz | tar -C /home/build/sdk -xzf -
- test_gio: | - test_gio: |
cd gio cd gio
go test ./... go test -v ./...
- test_cmd: | - test_cmd: |
cd gio/cmd cd gio/cmd
go test ./... go test -v ./...
+6 -6
View File
@@ -30,7 +30,6 @@ environment:
GOFLAGS: -mod=readonly GOFLAGS: -mod=readonly
PATH: /home/build/sdk/go/bin:/usr/bin:/home/build/go/bin:/home/build/android/tools/bin PATH: /home/build/sdk/go/bin:/usr/bin:/home/build/go/bin:/home/build/android/tools/bin
ANDROID_SDK_ROOT: /home/build/android ANDROID_SDK_ROOT: /home/build/android
EGL_PLATFORM: surfaceless # for headless tests
android_sdk_tools_zip: sdk-tools-linux-3859397.zip android_sdk_tools_zip: sdk-tools-linux-3859397.zip
android_ndk_zip: android-ndk-r20-linux-x86_64.zip android_ndk_zip: android-ndk-r20-linux-x86_64.zip
github_mirror: git@github.com:gioui/gio 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 - curl https://dl.google.com/go/go1.14.linux-amd64.tar.gz | tar -C /home/build/sdk -xzf -
- test_gio: | - test_gio: |
cd gio cd gio
go test -race ./... export EGL_PLATFORM=surfaceless # for headless tests
GOOS=windows go test -exec=wine ./... go test -race -v ./...
GOOS=windows go test -exec=wine -v ./...
GOOS=js GOARCH=wasm go build -o /dev/null ./... GOOS=js GOARCH=wasm go build -o /dev/null ./...
- install_chrome: | - install_chrome: |
curl -s https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 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 sudo apt install -y google-chrome-stable
- test_cmd: | - test_cmd: |
cd gio/cmd cd gio/cmd
go test ./... go test -v ./...
go test -race ./... go test -race -v ./...
cd gogio # since we need -modfile to point at the parent directory 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: | - install_jdk8: |
curl -so jdk.deb "https://cdn.azul.com/zulu/bin/zulu8.42.0.21-ca-jdk8.0.232-linux_amd64.deb" 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 sudo apt install -y -f ./jdk.deb
+2 -2
View File
@@ -15,7 +15,7 @@ tasks:
./make.bash ./make.bash
- test_gio: | - test_gio: |
cd gio cd gio
go test ./... go test -v ./...
- test_cmd: | - test_cmd: |
cd gio/cmd cd gio/cmd
go test ./... go test -v ./...