sudo: required services: - docker cache: directories: - $HOME/.cache language: go go: - stable - tip go_import_path: github.com/cad/ovpm env: matrix: - OS=el DIST=7 - OS=fedora DIST=25 before_install: - sudo apt-get -qq update - sudo apt-get install -y openvpn - go get -t -v ./... after_success: - bash <(curl -s https://codecov.io/bash) script: - go test -race -coverprofile=coverage.txt -covermode=atomic . - make docker-build deploy: provider: packagecloud username: ${PACKAGECLOUD_USER} repository: ${PACKAGECLOUD_REPO} token: ${PACKAGECLOUD_TOKEN} dist: ${OS}/${DIST} package_glob: rpm/*.{deb,rpm} skip_cleanup: true on: tag: true all_branches: true condition: -n $TRAVIS_TAG && $TRAVIS_TAG == "v"* && $TRAVIS_GO_VERSION == "stable"