Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check freshness of doc/stdlib on Travis #18815

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion doc/genstdlib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function translate(dirs::Vector; root = dirname(@__FILE__))
end
end
else
warn("errors found while generating documentation. Aborting file writing.")
error("errors found while generating documentation. Aborting file writing.")
end
# Report statistics about 'Base' docs.
summarise(state)
Expand Down