forked from u5surf/auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (55 loc) · 1.93 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
45
46
47
48
49
50
51
52
53
54
55
language: go
dist: xenial
sudo: true
services:
- docker
env:
matrix:
- GO111MODULE=on
matrix:
include:
- os: linux
go: 1.12.x
cache:
directories:
- "/home/travis/.cache/go-build"
- os: osx
go: 1.12.x
cache:
directories:
- "/Users/travis/Library/Caches/go-build"
before_install:
- go get -u github.com/client9/misspell/cmd/misspell
- go get -u golang.org/x/lint/golint
- go get github.com/fzipp/gocyclo
- go get -u honnef.co/go/tools/cmd/staticcheck
- go get golang.org/x/tools/cmd/cover
before_script:
- GOFILES=$(find . -type f -name '*.go' | grep -v vendor)
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then test -z $(gofmt -s -l $GOFILES); fi
- go test ./... -race -coverprofile=coverage.txt -covermode=atomic
- misspell -error -locale US $GOFILES
- gocyclo -over 20 $GOFILES
- golint -set_exit_status $GOFILES
- staticcheck ./pkg/*/*.go *.go
after_success:
- bash <(curl -s https://codecov.io/bash)
- make docker
before_deploy:
- make dist
deploy:
provider: releases
api_key:
secure: ajeBCYmDRamEOv9hpix9ZsGFvKItW+g5XCM16r2mw1ERu51CcmQ3UjkTj/NRSbuc6vST3TZed95Glne6NnH3wtDtBZHlXpohFbFxHzotgFqnHAzANe+B6BWWJ6sYFqDTkvqN2b1AMN6S3SLpPBZGy07uAR6DoHWUXLT6H9goTgejxTU0Mf4X667m9qKdR+Gfo+7lew1Lf9OFjOcQXpZBFk9XKMnGtYq5kdG0p0pkAD1T+ODpj9AY3j3W9JcpwG+CvUU9MvX2Z+dpqoVOXj2KoomI+EU4yWSA2MRmPC1HJlxIYXQoANVZzE9nHfWZizuLhaiJFTln6QM2qK+aWO5xWug3ZNV1837UJyFKOQ4NJIfpBNzXi8tUolItnNJv5E3Dtvpq1ZxKPH176IzbrCbdYE718UOozwmsukP8ag61toTe0naPkiM80kqlWymmBi5XQuiG7j2b2fdnYT9/5996EPWAfC2ZcyrDkzxpLQOJmKn5m6a8lnqQGLheVRjeR0orpfJH6itlmm7i1X2t5vj9NsWF798uaxih0GT6um1TkijdEjGJi2OHhx0nXOaeeajSAjERlb46t2lSdvVMnPNMY+0k/gYAQGkRzVfihjEVkDq98rPq6kOqFCJpHnLoaPW5JxTu6QzcKyQHwL6fXbwSkGtX2190++y+AWBQLsyflHs=
file_glob: true
file:
- bin/auth-*
on:
repo: moov-io/auth
tags: true
go: 1.12.x
skip_cleanup: true
after_deploy:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- make release-push