-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (45 loc) · 1.11 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
language: go
go:
#- 1.x
- stable
#- tip
#env:
# - GIMME_OS=linux GIMME_ARCH=amd64
# - GIMME_OS=darwin GIMME_ARCH=amd64
# - GIMME_OS=windows GIMME_ARCH=amd64
install:
- export GO111MODULE=on; go get || go get -t ./...
- go get golang.org/x/lint/golint
- go get github.com/gordonklaus/ineffassign
stages:
- name: lint
#if: env(GIMME_OS) = linux
- name: test
#if: env(GIMME_OS) = linux
- name: build
- name: run
#if: env(GIMME_OS) = linux
jobs:
include:
- stage: lint
script:
- diff <(echo -n) <(gofmt -s -d .) # Lint Check - Code Formatting
- go vet ./...
- golint ./... || true
- stage: test
script:
- ineffassign . # Lint Check - Unused assignment
- make test
- stage: build
script:
- make build
- make build_binaries
- find binaries -type f | xargs ls -ltrh
- cat binaries/sha256sum.txt
- stage: run
script:
- make run
- make build_binaries
- ./$(find binaries -name "*.linux.amd64")
- ./$(find binaries -name "*.linux.amd64") -n 6
- ./$(find binaries -name "*.linux.amd64") --help || true