From 0189574cd36e8db7be0e0fe3a6f0956f440562b8 Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Wed, 13 Sep 2017 11:40:31 -0400 Subject: [PATCH] CI: switch travis to sudo-required (#22986) --- .travis.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9b326e8bf7e14..a52b50c054f15 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: cpp -sudo: false +sudo: required dist: trusty matrix: include: @@ -58,8 +58,11 @@ before_install: contrib/travis_fastfail.sh || exit 1; gcc --version; BAR="bar -i 30"; - BUILDOPTS="-j3 VERBOSE=1 FORCE_ASSERTIONS=1 LLVM_ASSERTIONS=1"; + BUILDOPTS="-j5 VERBOSE=1 FORCE_ASSERTIONS=1 LLVM_ASSERTIONS=1"; echo "override ARCH=$ARCH" >> Make.user; + sudo sh -c "echo 0 > /proc/sys/net/ipv6/conf/lo/disable_ipv6"; + export JULIA_CPU_CORES=4; + export JULIA_TEST_MAXRSS_MB=1200; TESTSTORUN="all"; elif [ `uname` = "Darwin" ]; then brew update; @@ -81,6 +84,8 @@ before_install: export JULIA_MACOS_SPAWN="DYLD_FALLBACK_LIBRARY_PATH=\"$DYLD_FALLBACK_LIBRARY_PATH\" \$1"; export BUILDOPTS="$BUILDOPTS spawn=\$(JULIA_MACOS_SPAWN)"; make $BUILDOPTS -C contrib -f repackage_system_suitesparse4.make; + export JULIA_CPU_CORES=2; + export JULIA_TEST_MAXRSS_MB=600; TESTSTORUN="all --skip linalg/triangular subarray"; fi # TODO: re enable these if possible without timing out - git clone -q git://git.kitenet.net/moreutils script: @@ -119,9 +124,8 @@ script: /tmp/julia/bin/julia-debug --precompiled=no -e 'true' - /tmp/julia/bin/julia -e 'versioninfo()' - pushd /tmp/julia/share/julia/test - - export JULIA_CPU_CORES=2 && export JULIA_TEST_MAXRSS_MB=600 && - /tmp/julia/bin/julia --check-bounds=yes runtests.jl $TESTSTORUN && - /tmp/julia/bin/julia --check-bounds=yes runtests.jl libgit2-online download pkg + - /tmp/julia/bin/julia --check-bounds=yes runtests.jl $TESTSTORUN && + /tmp/julia/bin/julia --check-bounds=yes runtests.jl libgit2-online download pkg - popd # test that the embedding code works on our installation - mkdir /tmp/embedding-test &&