aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Yong Tang <yongtang@users.noreply.github.com> 2016-09-26 14:22:07 +0800
committerGravatar Miek Gieben <miek@miek.nl> 2016-09-26 07:22:07 +0100
commited1a4eed2e7f560d801546917131ae0d6031fd70 (patch)
tree6135e4acf25cb383e9b650198fbe466b0beaf852
parent440e92465d8e509076e060bc9f810f132af425de (diff)
downloadcoredns-ed1a4eed2e7f560d801546917131ae0d6031fd70.tar.gz
coredns-ed1a4eed2e7f560d801546917131ae0d6031fd70.tar.zst
coredns-ed1a4eed2e7f560d801546917131ae0d6031fd70.zip
Clean up `.travis.yml` and use `go_import_path` (#302)
This fix cleans up `.travis.yml` and use `go_import_path` to replace the customerized script for go import path (in case the build is from a forked repo). Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
-rw-r--r--.travis.yml8
1 files changed, 2 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index 9f3e74b17..7020ec5d4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,6 +9,8 @@ language: go
go:
- 1.6
+go_import_path: github.com/miekg/coredns
+
# In the Travis VM-based build environment, IPv6 networking is not
# enabled by default. The sysctl operations below enable IPv6.
# IPv6 is needed by some of the CoreDNS test cases. The VM environment
@@ -24,12 +26,6 @@ before_install:
- env
before_script:
- # Fix repo pathname for golang imports.
- # When building in a forked repo the import path will be incorrect.
- # Fix is to detect this case and create a symbolic link for the real import name.
- # Note: This assumes that both the upstream "real" repo and the fork are hosted
- # at the same domain. (eg. github.com)
- - ( export UPSTREAM="miekg/coredns" && export REPONAME=`pwd | rev | cut -d "/" -f 1-2 | rev` && test "$REPO" != "$UPSTREAM" && mkdir -p ../../`echo $UPSTREAM | cut -d "/" -f 1` && ln -s ../$REPONAME ../../$UPSTREAM )
# Download etcd, unpack and launch
- curl -L https://github.com/coreos/etcd/releases/download/v2.3.1/etcd-v2.3.1-linux-amd64.tar.gz -o etcd-v2.3.1-linux-amd64.tar.gz
- tar xzvf etcd-v2.3.1-linux-amd64.tar.gz