nickjj / rolespec

A test library for testing Ansible roles
GNU General Public License v3.0
232 stars 20 forks source link

Adds support for library path setting from env #20

Closed leucos closed 9 years ago

leucos commented 9 years ago

Actually, rolespec is set depending whether you're running under travis or not. Under travis, it uses libs in ./libs, otherwise, it assumes to be installed via make install and uses /usr/local/lib/rolespec

However, this behavior prevents installation under travis, which can be useful in some circumstances.

This patch add the possibility to set lib path before calling the script.

So, in order to use a rolespec installed with make install under Travis, you can issue:

ROLESPEC_LIB=/usr/local/lib/rolespec rolespec ...