mirror of
https://github.com/spf13/viper
synced 2024-12-22 19:47:01 +00:00
Add Hugo CI Step to Validate Viper
Since Hugo is such a heavy user of Viper, this patch adds an after_success section to the Travis-CI build that validates the Viper commit by attempting to build Hugo and executing `hugo -s docs`. This patch handles issue #222.
This commit is contained in:
parent
654fc7bb54
commit
fe9c8b59e1
1 changed files with 9 additions and 1 deletions
10
.travis.yml
10
.travis.yml
|
@ -1,10 +1,12 @@
|
||||||
|
go_import_path: github.com/spf13/viper
|
||||||
|
|
||||||
language: go
|
language: go
|
||||||
go:
|
go:
|
||||||
- 1.5.4
|
- 1.5.4
|
||||||
- 1.6.3
|
- 1.6.3
|
||||||
- 1.7
|
- 1.7
|
||||||
- tip
|
- tip
|
||||||
|
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
- osx
|
- osx
|
||||||
|
@ -15,5 +17,11 @@ matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- go install ./...
|
||||||
- go test -v ./...
|
- go test -v ./...
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- go get -u -d github.com/spf13/hugo
|
||||||
|
- cd $GOPATH/src/github.com/spf13/hugo && make && ./hugo -s docs && cd -
|
||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
Loading…
Reference in a new issue