Installs Allure Framework commandline utility.
Tested:
- Ubuntu 12.04 & 14.04 & 16.04 (LTS versions)
- Debian 7.11 & 8.6
- CentOS 6.5 & 7.2
- Fedora 21 -> 25
Should work on any nix, though (doesn't explicitly depend on platform).
- tar to decompress downloaded package
- Chef 12.0 or later
This cookbook requires tar and gzip to be preinstalled. Those are usually present at the moment, and i've restrained from hardcoding logic that would install them from packages.
Allure requires Java 7+ to operate, however, installation doesn't depend on this.
Key | Type | Description | Default |
---|---|---|---|
['allure_commandline']['version'] |
String | Default version | 1.5.2 |
['allure_commandline']['default_install_location'] |
String | Where to install Allure files using recipe-based installation | /usr/local/allure/allure-commandline |
['allure_commandline']['default_binary_location'] |
String | Where to install Allure binary using recipe-based installation | /usr/bin/allure |
Installs Allure with specified options
allure_commandline '/usr/bin/allure' do
# defaults to ['allure-commandline']['version']
version '1.5.2'
# defaults to /usr/share/allure/allure-commandline/#{version}
path '/usr/share/allure/allure-commandline'
# if set, overrides name property
# empty array allows to avoid creating symlinks at all
links []
# Internally GitHub API is used to find release url, so
# you may need to supply access token to raise request
# limit
github_api_token 'abcd...'
# Or just directly set url to the allure-commandline.tar.gz
# version is ignored then
url 'https://github.com/allure-framework/allure1/releases/download/allure-core-1.5.0/allure-commandline.tar.gz'
end
Installs Allure in default location
(/usr/share/allure/allure-commandline
), and symlinks binary to
/usr/local/bin/allure
.
Only 1.x versions are supported yet, at the moment of writing 2.0 hasn't been publicly available yet.
- Fork the repository on GitHub
- Create a named feature branch (like
add-installation-option
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request to dev branch using GitHub
Authors:
- Etki [email protected]
License: MIT