mirror of https://github.com/subgraph/fw-daemon
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
825 B
31 lines
825 B
language: go
|
|
|
|
go:
|
|
- 1.4
|
|
- 1.5
|
|
- 1.6
|
|
- tip
|
|
|
|
env:
|
|
- GOARCH=amd64
|
|
|
|
sudo: required
|
|
dist: trusty
|
|
|
|
before_install:
|
|
- sudo apt-get update -qq
|
|
- sudo apt-get install -qq -y gtk+3.0 libgtk-3-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)"
|
|
- "export Cairo_VERSION=$(pkg-config --modversion cairo)"
|
|
- "export Pango_VERSION=$(pkg-config --modversion pango)"
|
|
- echo "GTK version ${GTK_VERSION} (Glib ${Glib_VERSION}, Cairo ${Cairo_VERSION}, Pango ${Pango_VERSION})"
|
|
|
|
install:
|
|
- go get -t -tags "gtk_${GTK_VERSION}" github.com/gotk3/gotk3/...
|
|
|
|
script:
|
|
- go test -tags "gtk_${GTK_VERSION}" ./... |