This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
forked from FUSIONFoundation/efsn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
78 lines (73 loc) · 1.91 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
language: go
go_import_path: github.com/FusionFoundation/efsn
os: linux
jobs:
include:
# This builder only tests code linters
- stage: lint
os: linux
dist: bionic
go: 1.13.x
env:
- lint
git:
submodules: false
script:
- go run build/ci.go lint
- stage: build
os: linux
dist: bionic
go: 1.12.x
env:
- GO111MODULE=on
- GOPROXY=https://goproxy.io
script:
- go run build/ci.go install
- go run build/ci.go test -coverage $TEST_PACKAGES
- stage: build
os: linux
dist: bionic
go: 1.13.x
env:
- GOPROXY=https://goproxy.io
script:
- go run build/ci.go install
- go run build/ci.go test -coverage $TEST_PACKAGES
# These are the latest Go versions.
- stage: build
os: linux
arch: amd64
dist: bionic
go: master
env:
- GOPROXY=https://goproxy.io
script:
- go run build/ci.go install
- go run build/ci.go test -coverage $TEST_PACKAGES
- stage: build
if: type = pull_request
os: linux
arch: amd64
dist: bionic
go: 1.13.x
env:
- GOPROXY=https://goproxy.io
script:
- go run build/ci.go install
- go run build/ci.go test -coverage $TEST_PACKAGES
- stage: build
os: osx
go: 1.13.x
env:
- GOPROXY=https://goproxy.io
script:
- echo "Increase the maximum number of open file descriptors on macOS"
- NOFILE=20480
- sudo sysctl -w kern.maxfiles=$NOFILE
- sudo sysctl -w kern.maxfilesperproc=$NOFILE
- sudo launchctl limit maxfiles $NOFILE $NOFILE
- sudo launchctl limit maxfiles
- ulimit -S -n $NOFILE
- ulimit -n
- unset -f cd # workaround for https://github.com/travis-ci/travis-ci/issues/8703
- go run build/ci.go install