Skip to content

Commit

Permalink
chore: adds TravisCI.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Feb 18, 2019
1 parent 3de3d17 commit 55675d5
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
language: go

go:
- "1.x"

notifications:
email:
on_success: never
on_failure: change

sudo: false

env:
- GO111MODULE=on

before_install:
# Install linters and misspell
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.14.0
- golangci-lint --version

install:
- echo "TRAVIS_GO_VERSION=$TRAVIS_GO_VERSION"
- go mod download

deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_GO_VERSION =~ ^1\.x$

0 comments on commit 55675d5

Please sign in to comment.