Project

travish

0.02
No commit activity in last 3 years
No release in over 3 years
Emulates a tiny subset of the travis workflow for running your own CI based on the .travis.yml
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0
~> 2.0.1
~> 3.12
~> 3.2.0
 Project Readme

travish

A super, super, super simple tool for running travis.yml files. Supports enough features that you can probably make it work if you define all your own steps.

Taking a reasonably complex .travis.yml file ( from Eigen )

osx_image: xcode61
language: objective-c

env:
  global:
    secure: "nNOR1HgbuY1Z1SgsHyn2p2EtcC7N8HMJvv3BrQwnY7Fzg6dkIFWISAZYzzijXaqN0BJ+lvKHSO8F4HjWRL64x868bPSMdf3xlqG2VR5yvKsFfpjwqxoyDsBYc68VPsH+tcZqQt4SC2wAqGSkOOF3Pn/4yGyoCGZWWq05cN05las="

cache:
  - bundler

before_install:
  - 'echo ''gem: --no-ri --no-rdoc'' > ~/.gemrc'
  - echo "machine github.com login $GITHUB_API_KEY" > ~/.netrc
  - chmod 600 ~/.netrc
  - pod repo add artsy https://github.com/artsy/Specs.git

before_script:
  - make ci
  
install:
  - bundle install --jobs=3 --retry=3 --deployment --path=${BUNDLE_PATH:-vendor/bundle}
  - make oss
  - bundle exec pod install

script:
  - make test
  - make lint

notifications:
  slack:
    secure: "fXmNnx6XW5OvT/j2jSSHYd3mHwbL+GzUSUSWmZVT0Vx/Ga5jXINTOYRY/9PYgJMqdL8a/L0Mf/18ZZ+tliPlWQ/DnfTz1a3Q/Pf94hfYSGhSGlQC/eXYcpOm/dNOKYQ3sr4tqXtTPylPUDXHeiM2D59ggdlUvVwcALGgHizajPQ="

Things it does

  • travish run will execute all of your commands and set up any ENV variables that are not secure. This will run a full build of your test suite.
  • travish script will execute only the script parts of your yml and set up any ENV variables that are not secure. This will run a partial set of your test suite.

Things it doesn't do

  • Support notifications.
  • Support secure env variables.
  • Support secure anything really.
  • Support the default script stages that are ran when a stage is not included.

I'm open to PRs for any of these things.

Contributing to travish

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
  • Fork the project.
  • Start a feature/bugfix branch.
  • Commit and push until you are happy with your contribution.
  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
  • You can run tests by running the command rspec
  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright

Copyright (c) 2015-2017 Orta Therox & Artsy. See LICENSE.txt for further details.