vendor/github.com/spf13/cobra/.travis.yml
changeset 251 1c52a0eeb952
parent 242 2a9ec03fe5a1
equal deleted inserted replaced
250:c040f992052f 251:1c52a0eeb952
     1 language: go
     1 language: go
     2 
     2 
       
     3 stages:
       
     4   - diff
       
     5   - test
       
     6 
       
     7 go:
       
     8   - 1.10.x
       
     9   - 1.11.x
       
    10   - 1.12.x
       
    11   - tip
       
    12 
     3 matrix:
    13 matrix:
     4   include:
       
     5     - go: 1.9.4
       
     6     - go: 1.10.0
       
     7     - go: tip
       
     8   allow_failures:
    14   allow_failures:
     9     - go: tip
    15     - go: tip
       
    16   include:
       
    17     - stage: diff
       
    18       go: 1.12.x
       
    19       script: diff -u <(echo -n) <(gofmt -d -s .)
    10 
    20 
    11 before_install:
    21 before_install:
    12   - mkdir -p bin
    22   - mkdir -p bin
    13   - curl -Lso bin/shellcheck https://github.com/caarlos0/shellcheck-docker/releases/download/v0.4.3/shellcheck
    23   - curl -Lso bin/shellcheck https://github.com/caarlos0/shellcheck-docker/releases/download/v0.6.0/shellcheck
    14   - chmod +x bin/shellcheck
    24   - chmod +x bin/shellcheck
       
    25   - go get -u github.com/kyoh86/richgo
    15 script:
    26 script:
    16   - PATH=$PATH:$PWD/bin go test -v ./...
    27   - PATH=$PATH:$PWD/bin richgo test -v ./...
    17   - go build
    28   - go build
    18   - diff -u <(echo -n) <(gofmt -d -s .)
       
    19   - if [ -z $NOVET ]; then
    29   - if [ -z $NOVET ]; then
    20       diff -u <(echo -n) <(go tool vet . 2>&1 | grep -vE 'ExampleCommand|bash_completions.*Fprint');
    30       diff -u <(echo -n) <(go vet . 2>&1 | grep -vE 'ExampleCommand|bash_completions.*Fprint');
    21     fi
    31     fi