-
Notifications
You must be signed in to change notification settings - Fork 191
/
.travis.yml
29 lines (26 loc) · 888 Bytes
/
.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
language: go
go:
- "1.7.4"
- "1.8.3"
- "1.9.4"
- "1.10.1"
- tip
before_install:
# because travis-ci is running an older ubuntu, we add the maxmind repository
# to get geoipupdate
- sudo apt-get -y update
- sudo apt-get -y install software-properties-common python-software-properties
- sudo add-apt-repository -y ppa:maxmind/ppa
- sudo apt-get -y update && sudo apt-get -y install libgeoip-dev geoipupdate curl
install:
# - curl -fso /tmp/GeoIP.conf http:https://geodns.bitnames.com/geoip/GeoIP.conf
# - sudo mv /tmp/GeoIP.conf /etc/
- sudo geoipupdate
# - sudo ln -s /usr/share/GeoIP $TRAVIS_BUILD_DIR/db
# - sudo ln -s /usr/share/GeoIP/GeoLite2-Country.mmdb /usr/share/GeoIP/GeoIP2-Country.mmdb
# - echo [geodns] >> dns/geodns.conf
# - echo Directory=/usr/share/GeoIP/ >> dns/geodns.conf
- go build -v
- go install
script:
- cd $TRAVIS_BUILD_DIR && make test