update travis config

This commit is contained in:
Henrique Dias 2016-12-08 16:06:17 +00:00
parent 5cb0900c38
commit 744d8c917e

View File

@ -3,15 +3,11 @@ go:
- tip - tip
sudo: false sudo: false
install: install:
- (go get github.com/hacdias/caddy-filemanager) || true
- cd $GOPATH/src/github.com/hacdias/caddy-filemanager
- go generate
- cd ${TRAVIS_BUILD_DIR}
- go generate - go generate
- go get -u -v $(go list -f '{{join .Imports "\n"}}' ./... | sort | uniq | grep -v caddy-hugo) - go get -u -v $(go list -f '{{join .Imports "\n"}}' ./... | sort | uniq | grep -v caddy-hugo)
- go get -u -v github.com/mholt/caddy/caddyhttp - go get -u -v github.com/mholt/caddy/caddyhttp
- go get -u -v github.com/caddyserver/caddydev - go get -u -v github.com/caddyserver/caddydev
- go install github.com/caddyserver/caddydev - go install github.com/caddyserver/caddydev
script: script:
- caddydev --output="caddy" --source="." hugo - 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 test ./... - go build github.com/mholt/caddy/caddy