-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
41 lines (35 loc) · 1.17 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Initially based on (switched to full Docker config by 2020-04-21) https://github.com/chef-cookbooks/enterprise-chef-common/blob/master/.travis.yml
# Updated based on: https://gitlab.openminds.be/mirror/ark/blob/master/.travis.yml
# kitchen-in-travis-native: https://github.com/zuazo/kitchen-in-travis-native
# Use Travis's container-based infrastructure
os: linux
dist: xenial
language: ruby
services: docker
addons:
apt:
sources:
- chef-current-xenial
packages:
- chef-workstation
env:
jobs:
- INSTANCE=ubuntu-1804
# Add on demand:
- INSTANCE=ubuntu-2004
before_install:
- cd cookbooks/cwb-server
install:
- echo "skip bundle install, using ChefDK instead"
before_script:
# https://github.com/zuazo/kitchen-in-travis-native/issues/1#issuecomment-142455888
- sudo iptables -L DOCKER || sudo iptables -N DOCKER
# Ensure we make ChefDK's Ruby the default
- eval "$(chef shell-init bash)"
- chef --version
- cookstyle --version
# Accepting Chef licence is required from version >15
- CHEF_LICENSE=accept chef exec gem list
script:
# Run all test stages: lint, syntax, unit_test, integration_test
- make all_tests INSTANCE=${INSTANCE}