This commit is contained in:
parent
82addda871
commit
f458524feb
2 changed files with 1 additions and 61 deletions
60
.travis.yml
60
.travis.yml
|
|
@ -1,60 +0,0 @@
|
||||||
language: go
|
|
||||||
go: "1.15"
|
|
||||||
go_import_path: github.com/andig/evcc
|
|
||||||
|
|
||||||
cache:
|
|
||||||
directories:
|
|
||||||
- $HOME/.cache/go-build
|
|
||||||
- $HOME/gopath/pkg/mod
|
|
||||||
- $HOME/gopath/pkg/src
|
|
||||||
|
|
||||||
notifications:
|
|
||||||
email:
|
|
||||||
on_success: never
|
|
||||||
on_failure: change
|
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- PATH=$HOME/gopath/bin:$PATH
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
# Install linters and misspell
|
|
||||||
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin
|
|
||||||
- golangci-lint --version
|
|
||||||
- make install
|
|
||||||
|
|
||||||
script:
|
|
||||||
# build
|
|
||||||
- make
|
|
||||||
- go mod tidy
|
|
||||||
# ensure all changes are committed; currently disabled using <true>
|
|
||||||
- test -z "$(git status --porcelain)" || (git status; git diff; true)
|
|
||||||
|
|
||||||
before_deploy:
|
|
||||||
- curl -sfL https://raw.githubusercontent.com/ldez/seihon/master/godownloader.sh | bash -s -- -b $GOPATH/bin
|
|
||||||
- seihon --version
|
|
||||||
- |
|
|
||||||
if ! [ "$BEFORE_DEPLOY_RUN" ]; then
|
|
||||||
export BEFORE_DEPLOY_RUN=1;
|
|
||||||
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
|
||||||
fi
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
- provider: script
|
|
||||||
skip_cleanup: true
|
|
||||||
script: curl -sL https://git.io/goreleaser | bash
|
|
||||||
on:
|
|
||||||
tags: true
|
|
||||||
- provider: script
|
|
||||||
skip_cleanup: true
|
|
||||||
script: make publish-images
|
|
||||||
on:
|
|
||||||
branch: master
|
|
||||||
tags: true
|
|
||||||
# always publish latest image
|
|
||||||
- provider: script
|
|
||||||
skip_cleanup: true
|
|
||||||
script: make publish-latest
|
|
||||||
on:
|
|
||||||
branch: master
|
|
||||||
tags: false
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
# evcc
|
# evcc
|
||||||
|
|
||||||
[](https://travis-ci.com/andig/evcc)
|
[](https://github.com/andig/evcc/actions?query=workflow%3ABuild)
|
||||||
[](https://goreportcard.com/report/github.com/andig/evcc)
|
[](https://goreportcard.com/report/github.com/andig/evcc)
|
||||||
[](https://github.com/andig/evcc/releases)
|
[](https://github.com/andig/evcc/releases)
|
||||||
[](https://hub.docker.com/r/andig/evcc)
|
[](https://hub.docker.com/r/andig/evcc)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue