test: include .gitlab-ci.yml from test-cookbook

parent ceeed073
Pipeline #19033440 passed with stage
in 7 minutes and 4 seconds
# Template chef 20170731
image: sbernard/arch-kitchen-docker
before_script:
- bundle install
variables:
CHECKS_REPO: https://gitlab.com/samuel.bernard/checks/raw/master
foodcritic:
script:
- foodcritic -f any .
rubocop:
script:
- rubocop
lines_length:
script:
- curl -s $CHECKS_REPO/check_lines_length.sh | bash
git_history:
script:
- curl -s $CHECKS_REPO/check_git_history.sh | bash
kitchen:
tags:
- docker
before_script:
- bundle install
- if [ ! -e /var/run/docker.sock ]; then DOCKER_DRIVER=vfs dockerd & fi
# On shared runner running coreos, we need to add privileged in driver
# for centos and debian images. This may change in the future
- 'if uname -r | grep "coreos" > /dev/null; then
sed -i "/^driver:/a\\ \\ privileged: true" .kitchen.yml; fi'
script:
- >
alias kitchen='bundle exec kitchen';
imgs="$(kitchen diagnose | grep '^ image:' | cut -d':' -f2 | uniq)";
for image in $imgs; do docker pull $image; done
- bundle exec kitchen test -c -d always
include:
- https://gitlab.com/chef-platform/test-cookbook/raw/master/.gitlab-ci.yml
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment