Commit ce29ceec authored by Christopher Huhn's avatar Christopher Huhn 🥚
Browse files

Configure gitlab-ci

parent 595f3492
---
stages:
- rubocop
- foodcritic
- chefspec
- kitchen
rubocop:
stage: rubocop
script:
- rake rubocop
foodcritic:
stage: foodcritic
script:
- rake foodcritic
chefspec:
stage: chefspec
script:
- rake chefspec
allow_failure: true
kitchen:
stage: kitchen
resource_group: $CI_JOB_NAME-$CI_PROJECT_NAME
script:
- kitchen test $SUITE-$PLATFORM
after_script:
# make sure failed runs are cleaned up too:
- kitchen destroy $SUITE-$PLATFORM
parallel:
matrix:
- PLATFORM:
# - jessie
- stretch
- buster
SUITE:
- $CI_PROJECT_NAME
.post:
script:
- kitchen destroy
Vagrant.configure(2) do |config|
# install the Debian-provided Chef package
config.vm.provision "shell", inline: <<-SHELL
config.vm.provision 'shell', inline: <<-SHELL
sudo apt-get -qq update
sudo DEBIAN_FRONTEND=noninteractive apt-get -q -y install chef
sudo DEBIAN_FRONTEND=noninteractive apt-get -qq -y install chef
sudo gem install chef-vault --version '< 4'
SHELL
# configure proxy if required:
if Vagrant.has_plugin?('vagrant-proxyconf')
config.proxy.http = 'http://proxy.gsi.de:3128/'
config.proxy.https = 'http://proxy.gsi.de:3128/'
config.proxy.no_proxy = 'localhost,127.0.0.1,.gsi.de'
end
end
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