Skip to content

Commit

Permalink
add CI build & deploy script
Browse files Browse the repository at this point in the history
also update readme to show status
  • Loading branch information
gesquive committed Jun 7, 2017
1 parent ed0940c commit 6c9a34d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: go
go:
- 1.6.x
- 1.7.x
- 1.8.x
install: make deps
script: make
before_deploy:
- make docs
- make dist
deploy:
provider: releases
api_key:
secure: fhuKcnTfBs0ECPjzFDdK1+9iYeTknhIrgMPDXzrCVM7QDIYCnffDd9WRUoRZfcVer7UY/xlAxcVmzZc52b1i2x3l2+hblpDkDwMXmNM2uxSAK2mgxUFIbAmohu3whhOkQZoFK32aoIr52xEyaH7mcYCEGR7aVfX8oUEkKuAqp089rqgBocw3UPJF7+e0DZIT9kJa6EFd2LC5zwg9qdWPDS+14GIMmqmMPgBvqNOfiBtwWRcMMMxUuy4Dw1HmckCTsUhk6DQVmynFnOGBStW4URM+mjHvIjwB89ebsQI+ZuXfOJiGnYs5TUp9o/7m05KgjE3bJeH9NuVZ6GZjfwHpnG5A4wGljX14ImltjpVQCbYxZdsdiyW9A+7dn3Q/mUWDyD30GD15Z5fcWCy7sbLL0lp+bKDyEu2BZHU9bNZ7PZIW5We2Wv/D5dN+hPh/T2Ohz2Nc60/y1h3uUOXiDz6RAge7qOdRUrE5Sby0zvOPSWBxJb+xH4lxnkkVB9ljfBgWdaBTpBxru5Rowv8iOgjfgP4EZz5HSoBpS3gsFPCTznMuRK8FJSB8d36tNzZeXh6XqaRikElwXwdfvz4CfsrJuXPzR9JvAUuEBSSUuUiBKEWLiE3MAhgb8PmUOiIIWKs3zzWIbwjHc3AN0o5JLnCzZBgyOuEKDEgOaK0o415utsk=
file_glob: true
file:
- dist/*-v*.tar.gz
- dist/*-v*.zip
on:
tags: true
condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+(\.[0-9]+)?(-[^ \t\r\n\v\f]*)?$ && $TRAVIS_GO_VERSION =~ ^1\.8\.[0-9]+$
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# git-user
[![Travis CI](https://img.shields.io/travis/gesquive/git-user/master.svg?style=flat-square)](https://travis-ci.org/gesquive/git-user)
[![Software License](https://img.shields.io/badge/License-MIT-orange.svg?style=flat-square)](https://github.com/gesquive/git-user/blob/master/LICENSE.md)
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](https://godoc.org/github.com/gesquive/git-user)

Git plugin that allows you to save multiple user profiles and set them as project defaults

Expand All @@ -8,7 +11,7 @@ I created this because I have multiple emails that I use for work, personal, and
## Installing

### Compile
This project requires go1.6 to compile. Just run `go get -u github.com/gesquive/git-user` and the executable should be built for you automatically in your `$GOPATH`.
This project requires go1.6+ to compile. Just run `go get -u github.com/gesquive/git-user` and the executable should be built for you automatically in your `$GOPATH`.

Optionally you can run `make install` to build and copy the executable to `/usr/local/bin/` with correct permissions.

Expand Down

0 comments on commit 6c9a34d

Please sign in to comment.