github.com/djarvur/go-swagger@v0.18.0/appveyor.yml (about)

     1  version: "0.1.{build}"
     2  
     3  # Operating system (build VM template)
     4  os: Windows Server 2012 R2
     5  
     6  clone_folder: C:\gopath\src\github.com\go-swagger\go-swagger
     7  shallow_clone: true # for startup speed
     8  pull_requests:
     9    do_not_increment_build_number: true
    10  
    11  skip_tags: true
    12  skip_branch_with_pr: true
    13  
    14  environment:
    15    GOPATH: C:\gopath
    16    GOVERSION: 1.11.3
    17    GOCOVMODE: "mode: atomic"
    18    PATH: C:\gopath\bin;%PATH%
    19  
    20  platform:
    21    - x64
    22  
    23  # http://www.appveyor.com/docs/installed-software
    24  install:
    25    # pre-installed MinGW at C:\MinGW is 32bit only
    26    # but MSYS2 at C:\msys64 has mingw64
    27    - set PATH=%GOPATH%\bin;c:\go\bin;C:\msys64\mingw64\bin;%PATH%
    28    - gcc --version
    29    - g++ --version
    30  
    31    # upgrade go
    32    - rmdir c:\go /s /q
    33    - appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.zip
    34    - 7z x go%GOVERSION%.windows-amd64.zip -y -oC:\ > NUL
    35  
    36    # some helpful output for debugging builds
    37    - go version
    38    - go env
    39  
    40    # get the dependencies etc
    41    - go get -u github.com/stretchr/testify/assert
    42    - go get -u github.com/davecgh/go-spew/spew
    43    - go get -u github.com/axw/gocov/gocov
    44    - go get -u gopkg.in/matm/v1/gocov-html
    45    - go get -u github.com/cee-dub/go-junit-report
    46  
    47  build_script:
    48    - cd %APPVEYOR_BUILD_FOLDER%
    49    - echo %PATH%
    50    - echo %GOPATH%
    51  
    52  test_script:
    53    - ps: go test -vet off -timeout 20m -v $(go list ./... | sls -n "vendor|fixtures|examples")
    54  
    55  #artifacts:
    56  #  - path: '%GOPATH%\bin\*.exe'
    57  deploy: off
    58  
    59  notifications:
    60    - provider: Slack
    61      incoming_webhook: https://hooks.slack.com/services/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
    62      auth_token:
    63        secure: J4Kd3fY4CoTI+5+zSXkStkTPqnycfxFfk74GcGxDUq02z2jHcdIpiLyDbkIiQM9Z
    64      channel: bots
    65      on_build_success: false
    66      on_build_failure: true
    67      on_build_status_changed: true