pull/60/merge
Henrique Dias 2017-04-23 15:26:46 +01:00
parent d7cbd9355e
commit a27588e930
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
1 changed files with 12 additions and 2 deletions

View File

@ -2,11 +2,21 @@ language: go
go:
- tip
- 1.8
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:
- mkdir $GOPATH/src/caddy
- touch $GOPATH/src/caddy/main.go
- echo "package main
import \"github.com/mholt/caddy/caddy/caddymain\
import \"github.com/hacdias/caddy-hugo\"
func main() {
caddymain.Run()
}" >> $GOPATH/src/caddy/main.go
script:
- 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
- go build caddy