aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-08-04 02:38:43 +0200
committerMichael Muré <batolettre@gmail.com>2018-08-04 02:40:08 +0200
commit90ccc94a0ee96a90ffe0de2fbaabe81f8ae26904 (patch)
treeb60f3ce650fd1e4651b2d7483b9e5a7c46ec3089
parentba16fc10b4ba7e31bd44de34f4af0636c7ab7d78 (diff)
downloadgit-bug-90ccc94a0ee96a90ffe0de2fbaabe81f8ae26904.tar.gz
travis: configure cross-compile + deploy on github + codecov
-rw-r--r--.gitignore2
-rw-r--r--.travis.yml22
2 files changed, 23 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 7b041d7e..98d4117f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,5 @@ git-bug
!/doc/bash_completion/git-bug
!/doc/zsh_completion/git-bug
.gitkeep
+dist
+coverage.txt
diff --git a/.travis.yml b/.travis.yml
index 59c7652f..6cb3f217 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,8 +4,28 @@ go:
- "1.9"
- "1.10.x"
+before_install:
+ - go get github.com/mitchellh/gox
+
install:
- make install
script:
- - make test \ No newline at end of file
+ - make test
+ - go test -race -coverprofile=coverage.txt -covermode=atomic ./...
+
+after_success:
+ - bash <(curl -s https://codecov.io/bash)
+ - gox -tags=deploy_build -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}"
+
+deploy:
+ provider: releases
+ skip_cleanup: true
+ api_key:
+ secure: fLW37YkuY7KhVGpS6kgAAZPxgnePkLJG6AhWArOdVjgF0LMpps3PdvmfLkt+UUwjN0B+7l5NZSNU6c7F7R9AtJG5sfI7glFYxhQj3SdDr3rJCM1jqiJoCpkMGNHaJXsuGN1T/fWyfhHkhhyucbPv0d16llOsw98h7dIR1tCEFqMbfyA2G0182uKlOgZ/cjQGTRvU2hFgRpVHWCPcZkG+d0anLyCHtECXAwVQO5cijwNa4a7BEvIIYKRK6/j/GTrn9SqTisww3n1wxaItmEL91HbR6oqKrU9lUCJ6dTI/3JszKfLxrxGSSmwgtxa2tccV8AfmiqMXk4dISsHWwMthFzCp+I0htbdm5d1hbx9Jfq+5zJjV5Vka5ewfpWwSMOKkZpsEspjSy7iQPLk8IvkDq8t7NQ8kU2j5Z//nEEFa1Rym+sWsKhzas6fs09hv5V9p5iCU0bCnrncavhD6u1NN6FaYlZtBz8a0p2SyOrgW2Yglg37IKsZPW805e+6L7L515+jQ5OkdbrGsHr9ko3YG0OX1UkMfJ7ntQXfNeADHP90TmML8t7t+O8pNFFRiQUDPO0rbytXwneQoE/Jhdmj10Rhqi/OEm5A5uV5smItc7eg2OE6lBWYOeIQyGpQrh6eTx9cO+osX0o5ROMr4IVhJ0e/rRuR+PCm/2f8JUzHAfsk=
+ file_glob: true
+ file: dist/**/*
+ on:
+ repo: MichaelMure/git-bug
+ go: 1.10.x
+ tags: true