Split Travis task into build and test