Integrate test and doc step in Travis build