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: pages skip_cleanup: true github_token: $GITHUB_TOKEN local_dir: release/ on: tag: true all_branches: true condition: -n $TRAVIS_TAG && $TRAVIS_TAG == "v"* && $TRAVIS_GO_VERSION == "stable" && $OS == "el"