.travis.yml 733 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. sudo: required
  2. services:
  3. - docker
  4. cache:
  5. directories:
  6. - $HOME/.cache
  7. language: go
  8. go:
  9. - stable
  10. - tip
  11. go_import_path: github.com/cad/ovpm
  12. env:
  13. matrix:
  14. - OS=el DIST=7
  15. - OS=fedora DIST=25
  16. before_install:
  17. - sudo apt-get -qq update
  18. - sudo apt-get install -y openvpn
  19. - go get -t -v ./...
  20. after_success:
  21. - bash <(curl -s https://codecov.io/bash)
  22. script:
  23. - go test -race -coverprofile=coverage.txt -covermode=atomic .
  24. - make docker-build
  25. deploy:
  26. provider: pages
  27. skip_cleanup: true
  28. github_token: $GITHUB_TOKEN
  29. local_dir: release/
  30. on:
  31. tag: true
  32. all_branches: true
  33. condition: -n $TRAVIS_TAG && $TRAVIS_TAG == "v"* && $TRAVIS_GO_VERSION == "stable" && $TRAVIS_OS == "el"