Using 'if' in .travis.yml to be sure it doesn't fail

The short version fails if the condition is not met and thus break the
build.