update
parent
d7cbd9355e
commit
a27588e930
14
.travis.yml
14
.travis.yml
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue