Use before_script instead of script to build docs, or else Travis doesn't run npm test