unless ENV.to_hash.has_key? 'CI' namespace :travis do desc 'Runs travis-lint to check .travis.yml' task :lint do sh 'travis-lint' end end end