travis.yml: use if statement