forked from aregm/enzyme
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
42 lines (35 loc) · 710 Bytes
/
.travis.yml
File metadata and controls
42 lines (35 loc) · 710 Bytes
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
image: Rhoc
stages:
- build
- test
build_tags:
stage: build
script:
- make GOOS=linux
- make GOOS=windows
- make GOOS=darwin
only:
- tags
artifacts:
paths:
- package-*.tar.gz
expire_in: 1 yrs
build:
stage: build
script:
- make bin
except:
- tags
test:
stage: test
script:
- go test -coverprofile=coverage.out -mod=vendor ./cmd/... ./pkg/...
- go tool cover -func=coverage.out
test_required_linters:
stage: test
script:
- golangci-lint run --config CI/golangci_required_linters.yml cmd/... pkg/...
test_optional_linters:
stage: test
script:
- golangci-lint run --config CI/golangci_optional_linters.yml cmd/... pkg/...