diff --git a/.travis.yml b/.travis.yml index 88708efd..54d17e01 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,6 @@ install: - go get $(go list -f '{{join .Imports "\n"}}' ./... | sort | uniq | grep -v caddy-hugo) || true - go get github.com/mholt/caddy/caddyhttp -before_script: - - ./before_script.sh script: - - go build caddy + - sed -i 's/\_ \"github.com\/mholt\/caddy\/caddyhttp\"/\_ \"github.com\/mholt\/caddy\/caddyhttp\"\n\_ \"github.com\/hacdias\/caddy-hugo\"/g' $GOPATH/src/github.com/mholt/caddy/caddy/caddymain/run.go + - go build github.com/mholt/caddy/caddy diff --git a/before_script.sh b/before_script.sh deleted file mode 100644 index 8fbd5656..00000000 --- a/before_script.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -set -e -mkdir $GOPATH/src/caddy -touch $GOPATH/src/caddy/main.go - -cat << 'EOF' >> nada.tx -package main -import "github.com/mholt/caddy/caddy/caddymain" -import "github.com/hacdias/caddy-hugo" -func main() { - caddymain.Run() -} -EOF \ No newline at end of file