aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Evangelatov <anton.evangelatov@gmail.com>2018-11-22 22:32:50 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-11-22 22:32:50 +0800
commit6b2cc8950e55b1d93afb3c82bb1081cf931d62cf (patch)
treeb91c1e45c42b0541c876dfedd08427486d427051
parent2843001ac218040f7e773159596625654f4e4148 (diff)
downloadgo-tangerine-6b2cc8950e55b1d93afb3c82bb1081cf931d62cf.tar.gz
go-tangerine-6b2cc8950e55b1d93afb3c82bb1081cf931d62cf.tar.zst
go-tangerine-6b2cc8950e55b1d93afb3c82bb1081cf931d62cf.zip
travis: increase open file limits (#18155)
-rw-r--r--.travis.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index c1cc7c4aa..33a4f8949 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -29,6 +29,14 @@ matrix:
- os: osx
go: 1.11.x
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
- go run build/ci.go test -coverage $TEST_PACKAGES