Skip to content

Commit d2bb5cb

Browse files
committed
put back GOOS
1 parent 51fdd2b commit d2bb5cb

2 files changed

Lines changed: 19 additions & 18 deletions

File tree

.travis.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,53 +33,54 @@ jobs:
3333
include:
3434
- stage: checks
3535
# script: golangci-lint run # run a bunch of code checkers/linters in parallel
36-
script:
36+
before_script:
3737
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.27.0
38-
- golangci-lint --version # test that we got it
39-
# - make download
40-
- make lint
38+
script:
4139
- make download
40+
- make lint
4241
- stage: test
4342
script:
44-
- make coverage && bash <(curl -s https://codecov.io/bash)
43+
- make coverage
44+
after_success:
45+
- bash <(curl -s https://codecov.io/bash)
4546
# trigger goreportcard scan
4647
- curl -s -d "repo=github.com/$TRAVIS_REPO_SLUG" https://goreportcard.com/checks
4748
- stage: build
4849
script:
49-
- make
50+
- GOOS=linux make # gimmie and gvm don't pass through GOOS variables :(
5051
- ls -altr
5152
arch: amd64
52-
env: GIMMIE_OS=linux
53+
env: GOOS=linux
5354
- stage: build
5455
script:
55-
- make
56+
- GOOS=linux make
5657
- ls -altr
5758
arch: arm64
58-
env: GIMMIE_OS=linux
59+
env: GOOS=linux
5960
- stage: build
6061
script:
61-
- make
62+
- GOOS=windows make
6263
- ls -altr
6364
arch: amd64
64-
env: GIMMIE_OS=windows
65+
env: GOOS=windows
6566
- stage: build
6667
script:
67-
- make
68+
- GOOS=windows make
6869
- ls -altr
6970
arch: arm64
70-
env: GIMMIE_OS=windows
71+
env: GOOS=windows
7172
- stage: build
7273
script:
73-
- make
74+
- GOOS=darwin make
7475
- ls -altr
7576
arch: amd64
76-
env: GIMMIE_OS=darwin
77+
env: GOOS=darwin
7778
- stage: build
7879
script:
79-
- make
80+
- GOOS=darwin make
8081
- ls -altr
8182
arch: arm64
82-
env: GIMMIE_OS=darwin
83+
env: GOOS=darwin
8384

8485
deploy:
8586
on:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ locallint:
3030
@golangci-lint run
3131

3232
cilint:
33-
@golangci-lint run -v --out-format=code-climate --new-from-rev=master --issues-exit-code=0
33+
@golangci-lint run -v --out-format=code-climate --new-from-rev=master --issues-exit-code=0 > code-quality-report.json
3434

3535
test:
3636
@go test -short ./...

0 commit comments

Comments
 (0)