forked from test-kitchen/kitchen-dokken
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (38 loc) · 1.09 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
42
43
44
45
46
rvm:
- 2.5.1
cache: bundler
sudo: required
group: edge
services: docker
install: bundle install
bundler_args: "--binstubs=$PWD/bin --jobs 3 --retry 3 --without development"
branches:
only:
- master
env:
global:
- KITCHEN_YAML=.kitchen.yml
- INSTANCE=default-fedora
- CHEF_LICENSE="accept-no-persist"
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y nmap
before_script:
- sudo nmap -p- localhost
- sudo iptables -S
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
- docker run --privileged -d -p 4444:4444 -e PORT=4444 jpetazzo/dind
script:
# - DOCKER_HOST="tcp://localhost:4444" KITCHEN_YAML=.kitchen.yml time bundle exec kitchen test ${INSTANCE} -l debug
- time bundle exec kitchen test ${INSTANCE} -l debug
after_script: |
sudo nmap -p- localhost
sudo iptables -S
docker --version ;
docker ps -a ;
docker network ls ;
docker images ;
/bin/bash -c "docker inspect `docker ps -a | grep default-fedora: | awk '{ print $1 }'`" ;
ls -laR ~/.dokken
cat .kitchen/logs/kitchen.log ;
cat Gemfile.lock ;