Use TRAVIS_CI option when building on Travis.