[fix] Deploy moved to the end of the travis script to allow testing.