github.com/henvic/wedeploycli@v1.7.6-0.20200319005353-3630f582f284/.travis.yml (about)

     1  language: go
     2  
     3  go:
     4    - "1.14.x" # when updating to a new major release, update scripts below too
     5    - "tip"
     6  
     7  os:
     8    - linux
     9    - osx
    10    - windows
    11  
    12  jobs:
    13    allow_failures:
    14      - go: tip
    15      - os: windows
    16  
    17  env:
    18    - GO111MODULE=on
    19  
    20  install:
    21    - |
    22      if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TRAVIS_GO_VERSION" == "1.14.x" ]; then
    23        ./scripts/install-ci.sh;
    24      fi
    25  
    26  script:
    27    - |
    28      if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TRAVIS_GO_VERSION" == "1.14.x" ]; then
    29        make test
    30      else
    31        go test ./... -race
    32      fi
    33  
    34  after_success:
    35    - |
    36      if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TRAVIS_GO_VERSION" == "1.14.x" ]; then
    37        ./scripts/coverage.sh --coveralls;
    38      fi