Skip to content

Commit 6c9a34d

Browse files
committed
add CI build & deploy script
also update readme to show status
1 parent ed0940c commit 6c9a34d

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: go
2+
go:
3+
- 1.6.x
4+
- 1.7.x
5+
- 1.8.x
6+
install: make deps
7+
script: make
8+
before_deploy:
9+
- make docs
10+
- make dist
11+
deploy:
12+
provider: releases
13+
api_key:
14+
secure: fhuKcnTfBs0ECPjzFDdK1+9iYeTknhIrgMPDXzrCVM7QDIYCnffDd9WRUoRZfcVer7UY/xlAxcVmzZc52b1i2x3l2+hblpDkDwMXmNM2uxSAK2mgxUFIbAmohu3whhOkQZoFK32aoIr52xEyaH7mcYCEGR7aVfX8oUEkKuAqp089rqgBocw3UPJF7+e0DZIT9kJa6EFd2LC5zwg9qdWPDS+14GIMmqmMPgBvqNOfiBtwWRcMMMxUuy4Dw1HmckCTsUhk6DQVmynFnOGBStW4URM+mjHvIjwB89ebsQI+ZuXfOJiGnYs5TUp9o/7m05KgjE3bJeH9NuVZ6GZjfwHpnG5A4wGljX14ImltjpVQCbYxZdsdiyW9A+7dn3Q/mUWDyD30GD15Z5fcWCy7sbLL0lp+bKDyEu2BZHU9bNZ7PZIW5We2Wv/D5dN+hPh/T2Ohz2Nc60/y1h3uUOXiDz6RAge7qOdRUrE5Sby0zvOPSWBxJb+xH4lxnkkVB9ljfBgWdaBTpBxru5Rowv8iOgjfgP4EZz5HSoBpS3gsFPCTznMuRK8FJSB8d36tNzZeXh6XqaRikElwXwdfvz4CfsrJuXPzR9JvAUuEBSSUuUiBKEWLiE3MAhgb8PmUOiIIWKs3zzWIbwjHc3AN0o5JLnCzZBgyOuEKDEgOaK0o415utsk=
15+
file_glob: true
16+
file:
17+
- dist/*-v*.tar.gz
18+
- dist/*-v*.zip
19+
on:
20+
tags: true
21+
condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+(\.[0-9]+)?(-[^ \t\r\n\v\f]*)?$ && $TRAVIS_GO_VERSION =~ ^1\.8\.[0-9]+$

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# git-user
2+
[![Travis CI](https://img.shields.io/travis/gesquive/git-user/master.svg?style=flat-square)](https://travis-ci.org/gesquive/git-user)
3+
[![Software License](https://img.shields.io/badge/License-MIT-orange.svg?style=flat-square)](https://github.com/gesquive/git-user/blob/master/LICENSE.md)
4+
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](https://godoc.org/github.com/gesquive/git-user)
25

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

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

1013
### Compile
11-
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`.
14+
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`.
1215

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

0 commit comments

Comments
 (0)