Build docs before tests #315