Skip to content

Commit

Permalink
Run make julia-genstdlib on travis and verify doc/stdlib is up-to-date
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters committed Oct 13, 2016
1 parent 81927b0 commit a73dddb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,20 @@ script:
install -pm755 usr/lib/lib${name}*.dylib* /tmp/julia/lib/julia/;
done;
fi
- GENSTDLIB_OUTPUT=`make -s $BUILDOPTS julia-genstdlib 2>&1`; GENSTDLIB_EXITCODE=$?; test $GENSTDLIB_EXITCODE -eq 0
- STDLIBDOC_DIFF=`git diff --stat --exit-code doc/stdlib`
- cd .. && mv julia julia2
- /tmp/julia/bin/julia --precompiled=no -e 'true' &&
/tmp/julia/bin/julia-debug --precompiled=no -e 'true'
- /tmp/julia/bin/julia -e 'versioninfo()'
- export JULIA_CPU_CORES=2 && export JULIA_TEST_MAXRSS_MB=600 && cd /tmp/julia/share/julia/test &&
- test \! \( $GENSTDLIB_EXITCODE -eq 0 -a -z "$STDLIBDOC_DIFF" \) || (export JULIA_CPU_CORES=2 && export JULIA_TEST_MAXRSS_MB=600 &&
cd /tmp/julia/share/julia/test &&
/tmp/julia/bin/julia --check-bounds=yes runtests.jl $TESTSTORUN &&
/tmp/julia/bin/julia --check-bounds=yes runtests.jl libgit2-online pkg
/tmp/julia/bin/julia --check-bounds=yes runtests.jl libgit2-online pkg)
- cd `dirname $TRAVIS_BUILD_DIR` && mv julia2 julia &&
rm -rf julia/deps/scratch/julia-env &&
rm -f julia/deps/scratch/libgit2-*/CMakeFiles/CMakeOutput.log
- test $GENSTDLIB_EXITCODE -eq 0 || (echo 'make julia-genstdlib failed:'; echo "${GENSTDLIB_OUTPUT}"; false)
- test -z "$STDLIBDOC_DIFF" || (echo "Outdated files in doc/stdlib:"; echo "${STDLIBDOC_DIFF}"; echo "Please run make julia-genstdlib locally!"; false)
# uncomment the following if failures are suspected to be due to the out-of-memory killer
# - dmesg

0 comments on commit a73dddb

Please sign in to comment.