added conditions to travis.yml