-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
44 lines (38 loc) · 1.67 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
language: go
sudo: required
services:
- docker
matrix:
include:
- go: 1.x
env: LATEST=true
before_install:
- go get github.com/mitchellh/gox
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
install:
- # skip
script:
- diff -u <(echo -n) <(gofmt -d .)
- dep ensure
- go vet $(go list ./... | grep -v /vendor/)
- go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
- if [ "${LATEST}" = "true" ]; then gox -os="linux darwin windows" -arch="amd64" -output="bin/{{.Dir}}_{{.OS}}_{{.Arch}}" -ldflags "-X main.Rev=`git rev-parse --short HEAD`" -verbose ./...; fi
after_success:
- bash <(curl -s https://codecov.io/bash)
deploy:
- provider: releases
api_key:
secure: wLN41U3uZ3BJ+6bx3xk0p9JyQk0usQqw0ts2uUNsRLn1RWbtJTE4CM48X2EWQ6J66MkD14JEr7XEBxKZ98q+FnyKMfcHdZCJcOvmDHsmCteMn4vFLSSmMONVQuuwKQapevBUB3xHL/euoHPWKin2nZ61Le+DscpjzZ+LasP7vBn1C5poR3Tsbj+yezM/qS5M7+qR/a4qR0KOzkqqO8lunn/FMy2YmRVk7I8JimkWjTrJkBD3MVUUKtuujB/SZzZ276lIcrBod83QqiLXg4rZE4rWGYhX6UFB3eHocvTNKpaVqbsK+rhI3gt1kS0oHfPA8A7dV3QbIq+dB/+XuTQsEjF0on68SrNc7j7a6+KRPB2soeGDnyz0GNg6eu55FShcelDAcXbAO5La19jsibCyO6jBiPJjArEXpBn+AL1xjLtTdHy24lshxrFfuKvEU+vt4zPL6/+bL7hQxKLbGmV+Unc6a4sPEaex1C+ubPE6FVtQnuvMxM1xc1kAr+p1ECYXmzb+tzQDjdIytALxoTG5S8aXYnb8V248MXmTmQWCY45mFx/efFAYenN2gFAxqPXa46MwcKZaA3sQ8BECYdAG4aZKzb5ezVDSSJGw/bfJrgzjg7kij2GDYswV8PthiZ1UF1wfZFkdsQMiCXwY1+ubPE19v7YBsD1dm3Fz57QwBAE=
skip_cleanup: true
file_glob: true
file:
- bin/*
on:
repo: jalgoarena/skeleton-code-java
tags: true
condition: $LATEST = true
- provider: script
script: bash docker_push
on:
repo: jalgoarena/skeleton-code-java
tags: true