Skip to content

Commit

Permalink
Fix travis-ci deployment failing
Browse files Browse the repository at this point in the history
Signed-off-by: aswinkarthik <[email protected]>
  • Loading branch information
aswinkarthik committed Feb 16, 2019
1 parent 6720c8a commit 637a78f
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,33 @@
sudo: required

language: go

addons:
apt:
packages:
- rpm

go:
- 1.11
- 1.x

env:
global:
- GO111MODULE=on
- GORELEASER_ON=1

gobuild_args: -ldflags "-X main.version=${TRAVIS_TAG}"

script:
- go test -race -coverprofile=coverage.txt -covermode=atomic -v ./...
- GOOS=linux go build

after_success:
- curl -sL https://codecov.io/bash | bash

before_deploy:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin

deploy:
- provider: script
script: bash -l docker-push.sh
skip_cleanup: true
on:
branch: master
repo: aswinkarthik/csvdiff
tags: true
- provider: script
script: curl -sL https://git.io/goreleaser | bash
skip_cleanup: true
on:
branch: master
tags: true
repo: aswinkarthik/csvdiff
condition: $GORELEASER_ON = 1
condition: $GORELEASER_ON = 1

0 comments on commit 637a78f

Please sign in to comment.