Skip to content

Commit 5ee886d

Browse files
committed
fix(build): added a travis.yml that should be used for public github
1 parent ab62a91 commit 5ee886d

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.travis_public.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
language: go
2+
dist: focal
3+
4+
go:
5+
- 1.18.x
6+
7+
# Only run on main (still tests PRs)
8+
branches:
9+
only:
10+
- main
11+
12+
cache:
13+
directories:
14+
- $HOME/.cache/go-build
15+
- $HOME/gopath/pkg/mod
16+
17+
notifications:
18+
email: true
19+
20+
env:
21+
global:
22+
- GO111MODULE=on
23+
24+
before_install:
25+
- sudo apt-get update
26+
- pyenv global 3.8
27+
28+
install:
29+
- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.49.0
30+
- curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
31+
32+
script:
33+
- make travis-ci

0 commit comments

Comments
 (0)