1 require 'puppetlabs_spec_helper/rake_tasks'
2 require 'puppet-lint/tasks/puppet-lint'
3 require 'puppet-syntax/tasks/puppet-syntax'
5 PuppetLint.configuration.relative = true
6 PuppetLint.configuration.send("disable_80chars")
7 PuppetLint.configuration.log_format = "%{path}:%{line}:%{check}:%{KIND}:%{message}"
8 PuppetLint.configuration.fail_on_warnings = true
16 PuppetLint.configuration.ignore_paths = exclude_paths
17 PuppetSyntax.exclude_paths = exclude_paths
21 task :metadata_lint do
22 sh "metadata-json-lint metadata.json"
27 desc "Beaker tests against CentOS 7 VM with latest Carbon testing RPM"
28 task :cent_6test_vm do
29 sh "RS_SET=centos-7 RPM_REPO='opendaylight-6-testing' bundle exec rake beaker"
34 desc "Beaker tests against CentOS 7 container with latest Carbon testing RPM"
35 task :cent_6test_dock do
36 sh "RS_SET=centos-7-docker RPM_REPO='opendaylight-6-testing' bundle exec rake beaker"
41 desc "Beaker tests against Ubuntu 16.04 Container with Boron release Deb"
42 task :ubuntu_6test_vm do
43 sh "RS_SET=ubuntu-16 DEB_REPO='ppa:odl-team/carbon' bundle exec rake beaker"
48 desc "Beaker tests against Ubuntu 16.04 Container with Boron release Deb"
49 task :ubuntu_6test_dock do
50 sh "RS_SET=ubuntu-16-docker DEB_REPO='ppa:odl-team/carbon' bundle exec rake beaker"
55 desc "Run syntax, lint, and spec tests."
63 desc "Quick and important tests"
69 desc "All tests, use VMs for Beaker tests"
70 task :acceptance_vm => [
76 desc "All tests, use containers for Beaker tests"
77 task :acceptance_dock => [