mirror of
https://github.com/go-shiori/shiori.git
synced 2024-11-10 17:36:02 +08:00
commit
24a6d26f11
1 changed files with 39 additions and 0 deletions
39
.travis.yml
Normal file
39
.travis.yml
Normal file
|
@ -0,0 +1,39 @@
|
|||
language: go
|
||||
sudo: false
|
||||
matrix:
|
||||
include:
|
||||
- go: 1.x
|
||||
env: LATEST=true
|
||||
- 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
|
||||
|
||||
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
|
||||
|
||||
deploy:
|
||||
provider: releases
|
||||
skip_cleanup: true
|
||||
api_key:
|
||||
secure: $TOKEN
|
||||
file:
|
||||
- shiori_windows_amd64.exe
|
||||
- shiori_darwin_amd64
|
||||
- shiori_linux_amd64
|
||||
on:
|
||||
tags: true
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
condition: $LATEST = true
|
Loading…
Reference in a new issue