Skip to content

Commit

Permalink
Use scripts in .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmeyer committed Mar 10, 2018
1 parent 6678d44 commit 29829f9
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,13 @@ matrix:
- go: 1.9
- go: 1.8

before_install:
- go get github.com/mitchellh/gox # go tool for cross compiling
- go get github.com/inconshreveable/mousetrap # needed for windows builds

install:
- go get github.com/RadhiFadlillah/shiori
- bin/setup

script:
- go get -t -v ./...
- diff -u <(echo -n) <(gofmt -d .)
- go vet $(go list ./... | grep -v /vendor/)
- go test -v -race ./...
# only build binaries from the latest Go release.
- if [ "${LATEST}" = "true" ]; then gox -os="linux darwin windows" -arch="amd64" -output "shiori_{{.OS}}_{{.Arch}}" -ldflags "-X main.Rev=`git rev-parse --short HEAD`" -verbose ./...; fi
- bin/test
- if [ "${LATEST}" == "true" ]; then OSSES="linux darwin windows" bin/build; else bin/build; fi

deploy:
provider: releases
Expand Down

0 comments on commit 29829f9

Please sign in to comment.