-
Notifications
You must be signed in to change notification settings - Fork 896
/
.travis.yml
54 lines (49 loc) · 1.06 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
language: go
os:
- linux
- osx
go:
# - 1.7.x
# - 1.8.x
# - 1.9.x
# - 1.10.x
# - 1.11.x
# - 1.12.x
# - 1.13.x
# - 1.14.x
# - 1.15.x
# - 1.16.x
# - 1.17.x
# - 1.18.x
- 1.19.x
# - tip
addons:
apt:
packages:
- libx11-dev xorg-dev
- libxtst-dev libpng++-dev
- xcb libxcb-xkb-dev x11-xkb-utils libx11-xcb-dev libxkbcommon-x11-dev
# - libusb-dev
- libxkbcommon-dev
- xsel
- xclip
#
- xvfb
# script:
# - sudo apt update
# - sudo apt install libx11-dev
# - sudo apt install xorg-dev
# - sudo apt install libxtst-dev libpng++-dev
# # Event:
# - sudo apt install xcb libxcb-xkb-dev x11-xkb-utils libx11-xcb-dev libxkbcommon-x11-dev
# - sudo apt install libxkbcommon-dev
# # Clipboard:
# - sudo apt install xsel
# - sudo apt install xclip
# - go test -v .
before_install:
- export PATH=$PATH:$HOME/gopath/bin
- go get -v -t -d ./...
script:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then xvfb-run go test -v ./...; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then go test -v ./...; fi