.travis.yml
language: ruby
cache: bundler
dist: xenial
rvm: 2.1.9
env: SKIP_CHECKS=yes
matrix:
include:
- name: "Validate Commit Message"
language: python
script:
- pip install gitlint
- wget https://raw.githubusercontent.com/SUSE-Cloud/automation/master/scripts/jenkins/gitlint.ini
# See: https://github.com/travis-ci/travis-ci/issues/4596 for details on TRAVIS_COMMIT_RANGE
- gitlint --commits ${TRAVIS_COMMIT_RANGE/.../..} -C gitlint.ini
- name: "Validate Framework (RSpec) and Security Audit"
gemfile: crowbar_framework/Gemfile
script:
- cd crowbar_framework
- bin/bundle install
- bin/rake db:create db:migrate
- bundle exec rake spec brakeman:run
# ignore rest-client issues, chef 10 requires that
- bin/bundle exec bundle-audit update
- bin/bundle exec bundle-audit check --ignore CVE-2015-1820 CVE-2015-3448 OSVDB-117461 CVE-2019-11068 CVE-2019-5477 CVE-2017-1002201 CVE-2019-13117 CVE-2019-16770 CVE-2020-7595 CVE-2020-5247 CVE-2020-8130 CVE-2020-10663 CVE-2020-5267 CVE-2020-8164 CVE-2020-8166 CVE-2020-8167 CVE-2020-8151 CVE-2020-8165 CVE-2020-5249 CVE-2020-11077 CVE-2020-11076 CVE-2020-8161 CVE-2020-8184 CVE-2020-15169 CVE-2020-26247
- name: "Validate Cookbooks (RSpec)"
gemfile: chef/cookbooks/barclamp/Gemfile
script:
- cd chef/cookbooks/barclamp && bundle exec rake
- name: "Validate Cookbooks (Knife)"
gemfile: crowbar_framework/Gemfile
script:
- crowbar_framework/bin/bundle exec knife cookbook test -c .knife-test.rb -a
addons:
apt:
packages:
- libarchive-dev
# pin bundler to avoid problems with old ruby and new deps
before_install:
- rvm @global do gem install bundler -v '< 2.0.0'