Merge pull request #8436 from dezgeg/pr-travis-oom
travis-nox-review-pr: Try to detect if the build ran out of memory
This commit is contained in:
commit
4eeb4c88aa
@ -31,7 +31,15 @@ elif [[ $1 == build ]]; then
|
|||||||
echo "=== Not a pull request"
|
echo "=== Not a pull request"
|
||||||
else
|
else
|
||||||
echo "=== Checking PR"
|
echo "=== Checking PR"
|
||||||
nox-review pr ${TRAVIS_PULL_REQUEST}
|
|
||||||
|
if ! nox-review pr ${TRAVIS_PULL_REQUEST}; then
|
||||||
|
if sudo dmesg | egrep 'Out of memory|Killed process' > /tmp/oom-log; then
|
||||||
|
echo "=== The build failed due to running out of memory:"
|
||||||
|
cat /tmp/oom-log
|
||||||
|
echo "=== Please disregard the result of this Travis build."
|
||||||
|
fi
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
# echo "=== Checking tarball creation"
|
# echo "=== Checking tarball creation"
|
||||||
# nix-build pkgs/top-level/release.nix -A tarball
|
# nix-build pkgs/top-level/release.nix -A tarball
|
||||||
|
Loading…
Reference in New Issue
Block a user