Skip to content

Commit 0189574

Browse files
authored
CI: switch travis to sudo-required (#22986)
1 parent 5d0e9ad commit 0189574

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.travis.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: cpp
2-
sudo: false
2+
sudo: required
33
dist: trusty
44
matrix:
55
include:
@@ -58,8 +58,11 @@ before_install:
5858
contrib/travis_fastfail.sh || exit 1;
5959
gcc --version;
6060
BAR="bar -i 30";
61-
BUILDOPTS="-j3 VERBOSE=1 FORCE_ASSERTIONS=1 LLVM_ASSERTIONS=1";
61+
BUILDOPTS="-j5 VERBOSE=1 FORCE_ASSERTIONS=1 LLVM_ASSERTIONS=1";
6262
echo "override ARCH=$ARCH" >> Make.user;
63+
sudo sh -c "echo 0 > /proc/sys/net/ipv6/conf/lo/disable_ipv6";
64+
export JULIA_CPU_CORES=4;
65+
export JULIA_TEST_MAXRSS_MB=1200;
6366
TESTSTORUN="all";
6467
elif [ `uname` = "Darwin" ]; then
6568
brew update;
@@ -81,6 +84,8 @@ before_install:
8184
export JULIA_MACOS_SPAWN="DYLD_FALLBACK_LIBRARY_PATH=\"$DYLD_FALLBACK_LIBRARY_PATH\" \$1";
8285
export BUILDOPTS="$BUILDOPTS spawn=\$(JULIA_MACOS_SPAWN)";
8386
make $BUILDOPTS -C contrib -f repackage_system_suitesparse4.make;
87+
export JULIA_CPU_CORES=2;
88+
export JULIA_TEST_MAXRSS_MB=600;
8489
TESTSTORUN="all --skip linalg/triangular subarray"; fi # TODO: re enable these if possible without timing out
8590
- git clone -q git://git.kitenet.net/moreutils
8691
script:
@@ -119,9 +124,8 @@ script:
119124
/tmp/julia/bin/julia-debug --precompiled=no -e 'true'
120125
- /tmp/julia/bin/julia -e 'versioninfo()'
121126
- pushd /tmp/julia/share/julia/test
122-
- export JULIA_CPU_CORES=2 && export JULIA_TEST_MAXRSS_MB=600 &&
123-
/tmp/julia/bin/julia --check-bounds=yes runtests.jl $TESTSTORUN &&
124-
/tmp/julia/bin/julia --check-bounds=yes runtests.jl libgit2-online download pkg
127+
- /tmp/julia/bin/julia --check-bounds=yes runtests.jl $TESTSTORUN &&
128+
/tmp/julia/bin/julia --check-bounds=yes runtests.jl libgit2-online download pkg
125129
- popd
126130
# test that the embedding code works on our installation
127131
- mkdir /tmp/embedding-test &&

0 commit comments

Comments
 (0)