forked from joejulian/gio
.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>
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
image: fedora/latest
|
||||
packages:
|
||||
- tar
|
||||
- java-1.8.0-openjdk-devel
|
||||
sources:
|
||||
- https://git.sr.ht/~eliasnaur/gio
|
||||
environment:
|
||||
PATH: $PATH:/usr/bin:/home/build/goroot/go/bin:/home/build/go/bin:/home/build/android/tools/bin
|
||||
ANDROID_HOME: /home/build/android
|
||||
android_sdk_tools_zip: sdk-tools-linux-3859397.zip
|
||||
android_ndk_zip: android-ndk-r20-linux-x86_64.zip
|
||||
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
|
||||
rm go.tar.gz
|
||||
- install_android: |
|
||||
mkdir android
|
||||
cd android
|
||||
curl -so sdk-tools.zip https://dl.google.com/android/repository/$android_sdk_tools_zip
|
||||
unzip -q sdk-tools.zip
|
||||
rm sdk-tools.zip
|
||||
curl -so ndk.zip https://dl.google.com/android/repository/$android_ndk_zip
|
||||
unzip -q ndk.zip
|
||||
rm ndk.zip
|
||||
mv android-ndk-* ndk-bundle
|
||||
yes|sdkmanager --licenses
|
||||
sdkmanager "platforms;android-29" "build-tools;29.0.2"
|
||||
- install_gogio: |
|
||||
cd gio/cmd
|
||||
go install ./gogio
|
||||
- test_android: |
|
||||
cd gio/example
|
||||
gogio -target android ./kitchen
|
||||
@@ -0,0 +1,33 @@
|
||||
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 .)
|
||||
@@ -3,6 +3,8 @@
|
||||
Immediate mode GUI programs in Go. See [gioui.org](https://gioui.org)
|
||||
for details and documentation.
|
||||
|
||||
[](https://builds.sr.ht/~eliasnaur/gio)
|
||||
|
||||
## Issues
|
||||
|
||||
File bugs and TODOs through the [issue tracker](https://todo.sr.ht/~eliasnaur/gio) or send an email
|
||||
|
||||
Reference in New Issue
Block a user