2017-01-20 09:40:39 +00:00
|
|
|
# .travis.yml Execution script for role tests on Travis-CI
|
|
|
|
---
|
|
|
|
sudo: required
|
|
|
|
|
|
|
|
env:
|
|
|
|
matrix:
|
|
|
|
- DISTRIBUTION: centos
|
|
|
|
VERSION: 7
|
|
|
|
- DISTRIBUTION: ubuntu
|
2018-05-19 22:49:14 +00:00
|
|
|
VERSION: 18.04
|
2017-05-09 12:50:48 +00:00
|
|
|
- DISTRIBUTION: debian
|
2018-05-19 21:34:51 +00:00
|
|
|
VERSION: 9
|
2017-05-09 12:50:48 +00:00
|
|
|
- DISTRIBUTION: fedora
|
2018-05-19 21:34:51 +00:00
|
|
|
VERSION: 27
|
2017-01-20 09:40:39 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
|
|
|
before_install:
|
2018-05-19 21:34:51 +00:00
|
|
|
# Install latest Git
|
2017-01-20 09:40:39 +00:00
|
|
|
- sudo apt-get update
|
|
|
|
- sudo apt-get install --only-upgrade git
|
2017-05-09 07:46:48 +00:00
|
|
|
- sudo apt-get install smbclient
|
2018-05-19 21:34:51 +00:00
|
|
|
# Allow fetching other branches than master
|
2017-01-20 09:40:39 +00:00
|
|
|
- git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
|
2018-05-19 21:34:51 +00:00
|
|
|
# Fetch the branch with test code
|
2017-01-20 09:40:39 +00:00
|
|
|
- git fetch origin docker-tests
|
2017-01-20 11:09:32 +00:00
|
|
|
- git worktree add docker-tests origin/docker-tests
|
2017-01-20 09:40:39 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2017-11-21 08:06:53 +00:00
|
|
|
notifications:
|
|
|
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|