Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit f659143

Browse files
committed
Update README
1 parent 0408954 commit f659143

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ That `Strainerfile` will run [foodcritic](https://github.com/acrmp/foodcritic) a
2424
# Strainerfile
2525
knife test: bundle exec knife cookbook test $COOKBOOK
2626
foodcritic: bundle exec foodcritic -f any $SANDBOX/$COOKBOOK
27-
chefspec: bundle exec rspec $SANDBOX/$COOKBOOK
27+
chefspec: bundle exec rspec --color
28+
kitchen: bundle exec kitchen test
2829

2930
To strain, simply run the `strainer` command and pass in the cookbook(s) to strain:
3031

@@ -40,6 +41,19 @@ As of `2.0.0`, Strainer supports "standalone" mode. This allows you to use Strai
4041

4142
from the root of your cookbook. **Note**: your cookbook must have it's own Gemfile and working directory.
4243

44+
Running on CI
45+
-------------
46+
It's very easy to use Strainer on your CI system. If your cookbook is run on Travis CI, for example, you could use the following `.travis.yml` file:
47+
48+
```yaml
49+
rvm:
50+
- 1.9.3
51+
- 2.0.0
52+
script: bundle exec strainer test --except kitchen
53+
```
54+
55+
(Currently test-kitchen cannot be run on Travis, which is why it's skipped)
56+
4357
Berkshelf
4458
---------
4559
[Berkshelf](http://berkshelf.com/) is a tool for managing multiple cookbooks. It works very similar to how a `Gemfile` works with Rubygems. If you're already using Berkshelf, Strainer will work out of the box. If you're not using Berkshelf, Strainer will work out of the box.

0 commit comments

Comments
 (0)