2019-09-23 21:30:20 +03:00

30 lines
616 B
YAML

# acceptance does not work with current default trusty
dist: xenial
addons:
apt:
packages:
- rpm
language: go
go: '1.12.x'
services:
- docker
before_install:
- sudo docker run --privileged linuxkit/binfmt:v0.7
install:
- make setup
before_script:
- rpmbuild --version
script:
- make ci
after_success:
- bash <(curl -s https://codecov.io/bash)
- test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
notifications:
email: false
deploy:
- provider: script
skip_cleanup: true
script: curl -sL http://git.io/goreleaser | bash
on:
tags: true