minimum2scp/geco

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
# https://docs.travis-ci.com/user/languages/go/
language: go
sudo: false
go:
  - 1.11.x
install:
  - go get golang.org/x/lint/golint
  - go get github.com/golang/dep/cmd/dep
  - dep ensure
script:
  - golint .
  - go build
  - ./geco
matrix:
  allow_failures:
    - go: tip
before_deploy:
  - go get github.com/mitchellh/gox
  - gox -os="linux darwin" -arch="amd64" -output="dist/{{.Dir}}_{{.OS}}_{{.Arch}}/{{.Dir}}"
  - cd dist && zip geco_linux_amd64.zip  geco_linux_amd64/geco  && cd -
  - cd dist && zip geco_darwin_amd64.zip geco_darwin_amd64/geco && cd -
deploy:
  provider: releases
  api_key:
    secure: ZT3mJoBYUi7aabfTFNoZ12z0K54Ff0u7BofYIJrYyEGT4HV8b6qc4hu8AffZwqKT6q9Y0r8kt6CFfEHGrkDLs6p5DDMfv75BIgzvzmuR8aqIFGnvmGgZF2seJjN0P+jQv44nrPTxlVKruu/Gm7NrZK+CT7L6MC9y96Mk8dr02zs=
  file:
    - dist/geco_linux_amd64.zip
    - dist/geco_darwin_amd64.zip
  skip_cleanup: true
  on:
    repo: minimum2scp/geco
    tags: true
    branch: master
    condition: "${TRAVIS_GO_VERSION} = 1.11.x"