Skip to content

Commit

Permalink
Add test stage to .travis.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
lwolf committed Jul 4, 2020
1 parent a500d16 commit 3302bc1
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@ go:
services:
- docker

before_deploy:
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_LOGIN" quay.io --password-stdin

deploy:
- provider: script
skip_cleanup: true
script: curl -sL http://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
jobs:
include:
- stage: Test
script: make test
after_success:
- bash <(curl -s https://codecov.io/bash)
- stage: Release
before_script:
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_LOGIN" quay.io --password-stdin
deploy:
- provider: script
skip_cleanup: true
script: curl -sL http://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux

0 comments on commit 3302bc1

Please sign in to comment.