0.0
No commit activity in last 3 years
No release in over 3 years
A local runner for your TeamCity build failures.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 0.4
 Project Readme

Fuci::TeamCity

Build Status

Run TeamCity failures locally. A Fuci server extension.

Installation

Add this line to your application's Gemfile:

gem 'fuci-team_city', '~> 0.1'

And then execute:

$ bundle

Bundling the binstub is highly recommended:

$ bundle binstubs fuci-team_city

Configuration file

To configure itself, fuci-team_city looks for a file called ".fuci-team_city.rb" in your project's root directory. You should create that file and configure fuci-team_city there. The configuration must include your TeamCity username and password. Therefore, you should include ./.fuci-team_city.rb in .gitignore.

You must configure the following in .fuci-team_city.rb:

  1. TeamCity host site
  2. project name
  3. default branch
  4. username
  5. password
Fuci::TeamCity.configure do |fu|
  fu.host           = 'teamcity.myserver.com:8111'
  fu.project        = 'my_app'
  fu.default_branch = 'my-ci'
  fu.username       = 'username'
  fu.password       = 'password'
end

Adding custom tester plugins

Fuci tester plugins should return two things: Whether a failed build has failed with a specific testing framework (e.g. RSpec, Cucumber) and the command-line command that runs those specific failures. As of now, Fuci ships with RSpec and Cucumber tester plugins. If you want to add custom testers, add them in the configuration:

Fuci::Travis.configure do |fu|
  ...
  ...
  fu.add_testers Fuci::Spec, Fuci::AnotherTestingFramework
  ...
  ...
end

See the base Fuci repo for more information on custom testers.

Usage

See the base Fuci repo for command-line options native to Fuci.

Run your latest ci failures locally:

$ fuci

Call fuci with a branch name to run a specific branch's failures branch. For example, this will run the failures from the latest master build on your local code:

$ fuci master

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request