spf13--cobra/.travis.yml
2020-04-12 17:47:36 -04:00

39 lines
537 B
YAML

language: go
stages:
- diff
- test
- build
go:
- 1.12.x
- 1.13.x
- tip
before_install:
- go get -u github.com/kyoh86/richgo
- go get -u github.com/mitchellh/gox
matrix:
allow_failures:
- go: tip
include:
- stage: diff
go: 1.13.x
script: make fmt
- stage: build
go: 1.13.x
script: make cobra_generator
script:
- make test
deploy:
provider: releases
api_key:
secure: $YOUR_API_KEY_ENCRYPTED
file_glob: true
file: ./bin/*
skip_cleanup: true
on:
tags: true