Skip to content
Permalink
Browse files

Fix travis build

  • Loading branch information
abh committed Dec 28, 2019
1 parent 67ebd71 commit b9443b0ba173c7d314c87d8cd7ad3cc6704de54a
Showing with 12 additions and 11 deletions.
  1. +12 −11 .travis.yml
@@ -1,24 +1,25 @@
dist: bionic
language: go
go_import_path: github.com/abh/geodns

go:
- "1.11.8"
- "1.12.3"
- "1.13.4"
- 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
- sudo apt-get -y update && sudo apt-get -y install curl
# we add the maxmind repository to get geoipupdate
#- sudo apt-get -y install software-properties-common
#- sudo add-apt-repository -y ppa:maxmind/ppa && sudo apt-get -y update
#- sudo apt-get -y install geoipupdate geoip-database geoip-bin curl

install:
# - curl -fso /tmp/GeoIP.conf http://geodns.bitnames.com/geoip/GeoIP.conf
# - sudo mv /tmp/GeoIP.conf /etc/
- sudo geoipupdate
- sudo mkdir -p /usr/share/GeoIP/
- sudo curl -fso /usr/share/GeoIP/GeoLite2-ASN.mmdb https://geodns.bitnames.com/geoip/GeoLite2-ASN.mmdb
- sudo curl -fso /usr/share/GeoIP/GeoLite2-City.mmdb https://geodns.bitnames.com/geoip/GeoLite2-City.mmdb
- sudo curl -fso /usr/share/GeoIP/GeoLite2-Country.mmdb https://geodns.bitnames.com/geoip/GeoLite2-Country.mmdb
# - 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

0 comments on commit b9443b0

Please sign in to comment.
You can’t perform that action at this time.