github.com/upm-org/ush-sandbox@v2.6.4+incompatible/.travis.yml (about) 1 language: go 2 3 services: 4 - docker 5 6 matrix: 7 include: 8 - os: linux 9 go: "1.10" 10 - os: linux 11 go: 1.10.x 12 - os: linux 13 go: 1.11.x 14 env: LATEST_GO=1 15 - os: osx 16 go: 1.11.x 17 - os: windows 18 go: 1.11.x 19 20 go_import_path: mvdan.cc/sh 21 22 install: true 23 24 script: 25 - go get -d -t ./... 26 - go install ./... 27 - go test ./... 28 # TODO: reenable test -race on windows once TestInteractive stops failing 29 - if [[ $TRAVIS_OS_NAME != "windows" ]]; then go test -short -race ./...; fi 30 - shfmt -version 31 - if [[ -n $LATEST_GO ]]; then diff <(echo -n) <(gofmt -d .); fi 32 # TODO: reenable once Travis secrets stop breaking Windows builds 33 # - if [[ -n $LATEST_GO && $TRAVIS_EVENT_TYPE == push && $TRAVIS_BRANCH == master ]]; then ./release-docker.sh; fi