ansible-role-samba/.travis.yml
2017-05-10 14:47:41 +02:00

37 lines
877 B
YAML

# .travis.yml Execution script for role tests on Travis-CI
---
sudo: required
env:
matrix:
- DISTRIBUTION: centos
VERSION: 7
- DISTRIBUTION: ubuntu
VERSION: 16.04
- DISTRIBUTION: debian
VERSION: 8
- DISTRIBUTION: fedora
VERSION: 25
services:
- docker
before_install:
# Install latest Git
- sudo apt-get update
- sudo apt-get install --only-upgrade git
- sudo apt-get install smbclient
# Allow fetching other branches than master
- git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
# Fetch the branch with test code
- git fetch origin docker-tests
- git worktree add docker-tests origin/docker-tests
script:
# Create container and apply test playbook
- ./docker-tests/docker-tests.sh
# Run functional tests on the container
- SUT_IP=172.17.0.2 ./docker-tests/functional-tests.sh