Simplified ifs on travis build script