Skip to content

Commit

Permalink
CI with Travis (#1)
Browse files Browse the repository at this point in the history
* ci: .travis.yml with gox

* ci: show generated files

* ci: correctly show help msg

* ci: one more check for go fmt

* ci: final touches
  • Loading branch information
fenollp authored Oct 30, 2017
1 parent bd4c524 commit 2c5ee98
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
language: go
sudo: false
go: 1.x

before_install:
- set -e
- set -o pipefail
- go get github.com/mitchellh/gox

script:
- go generate
- go get -t -v ./...
- go fmt
- git --no-pager diff
- bash -c '[[ 0 -eq $(git --no-pager diff --name-only | wc -l) ]]'
- go vet $(go list ./... | grep -v /vendor/)
- go test -v -race .
- gox -os 'linux darwin windows' -arch 'amd64' -output 'testman-{{.OS}}_{{.Arch}}' -ldflags "-X main.Rev=$(git describe --abbrev --dirty --always --tags)" -verbose .
- ./testman-linux_amd64 -h | grep testman
- ./testman-linux_amd64 --version | grep testman
- ls -lha
- set +e

deploy:
provider: releases
api_key:
secure: UdW+GxuqS1fYtFjtquBZOUw24wfhG0Cqq5IHTGcCzPZLYyxwTFpG0VZCa9y+ysLZ5a65NM/X7hvc2pF/sNx1ftmOKr1yZ87jqzwh1o83HRZWsvklM9PGjAa42HM4TypYo4FOT9LENN0+oKvGP+tHsFb9v4REyA20JtnHO+we5BN+sJena1fd0rIX9xy2PqpV3uPRqifKAHFwl8QLIg9K7pUGsRgdV+uvVpYvEDGONt8yMYA01pZJIIgqZWrRUecuyVfZnZDYr+Uh31KoXCqojqqgUX2nqoMUfnwBLTkSRtPnLMCI30B0bYSVEjBDbgMSdmVWb2435r1RqcceHL3+tf9zsEd4iZFNZR92DHeAffyP4xuiIcrLWVe/YHD42fUUCXepBUo0z2ZWsfwuHaIZVQC56ilV/uR9fhi/b630jMMMe2XwOBjPUovv/BArxqZ6MZcG2/cjKlP+rLVREogbtes1pAYElQnDr4weB4eLWWicb06yi+pI1O2nVcjKX/OtB316tdtVDugvXj/PMXPDBFpUdIM4RkgVMAh99gXVg0MXAODS5TbDUgSMFRgVeMAePu0PIlVo8vqHirHeHLa4ahkKrk1VowMMBxVZFreEzBtlwCsxRbKAa9RbL+pdMaBvSXQGkOizXysQuhUdWKQnkpiy+PiEuuQNfFGhweWYjsw=
skip_cleanup: true
overwrite: true
file_glob: true
file: testman-*
on:
repo: CoveredCI/testman
tags: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# testman ~ CoveredCI's minion
# [testman](https://github.com/CoveredCI/testman) ~ CoveredCI's minion [![TravisCI build status](https://travis-ci.org/CoveredCI/testman.svg?branch=master)](https://travis-ci.org/CoveredCI/testman/builds)

[CoveredCI](https://coveredci.com) is an automated JSON API testing service based on QuickCheck.

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Options:
-h --help Show this screen
--version Show version`

return docopt.Parse(usage, nil, false, pkgTitle, false)
return docopt.Parse(usage, nil, true, pkgTitle, false)
}

func main() {
Expand Down

0 comments on commit 2c5ee98

Please sign in to comment.