forked from gotk3/gotk3
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
39 lines (32 loc) · 1.29 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
language: go
go:
# - "1.6"
# - "1.7"
- "1.15"
# - "tip"
env:
- GOARCH=amd64
sudo: false
matrix:
include:
# Gives environment: GTK version 3_10 (GLib 2_40, Cairo 1.13.1, Pango 1.36.3)
#- dist: trusty # Trusty is EOL by Canonical, according to https://docs.travis-ci.com/user/reference/trusty/
# Gives enironment: GTK version 3_18 (GLib 2_48, Cairo 1.14.6, Pango 1.38.1)
- dist: xenial
# Gives enironment: GTK version ??? (GLib ???, Cairo ???, Pango ???)
- dist: focal
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq -y gtk+3.0 libgtk-3-dev libnotify-dev
- sudo apt-get install -qq -y xvfb
- "export DISPLAY=:99.0"
- sudo /usr/bin/Xvfb $DISPLAY 2>1 > /dev/null &
- "export GTK_VERSION=$(pkg-config --modversion gtk+-3.0 | tr . _| cut -d '_' -f 1-2)"
- "export GLib_VERSION=$(pkg-config --modversion glib-2.0 | tr . _| cut -d '_' -f 1-2)"
- "export Cairo_VERSION=$(pkg-config --modversion cairo)"
- "export Pango_VERSION=$(pkg-config --modversion pango)"
- echo "GTK ${GTK_VERSION}, GLib ${GLib_VERSION} (Cairo ${Cairo_VERSION}, Pango ${Pango_VERSION})"
install:
- go get -t -tags "gtk_${GTK_VERSION} glib_${GLib_VERSION}" github.com/d2r2/gotk3/...
script:
- go test -tags "gtk_${GTK_VERSION} glib_${GLib_VERSION}" github.com/d2r2/gotk3/...