forked from abh/geodns
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
28 lines (25 loc) · 878 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
language: go
go:
- "1.10.8"
- "1.11.8"
- "1.12.3"
- 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://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