From 07eea4e26185e52c9e47d1ea92ddf963139af931 Mon Sep 17 00:00:00 2001 From: Bert Van Vreckem Date: Fri, 20 Jan 2017 10:40:39 +0100 Subject: [PATCH] Add .travis.yml --- .travis.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..febaa94 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,33 @@ +# .travis.yml Execution script for role tests on Travis-CI +--- +sudo: required + +env: + matrix: + - DISTRIBUTION: centos + VERSION: 7 + - DISTRIBUTION: ubuntu + VERSION: 14.04 + - DISTRIBUTION: ubuntu + VERSION: 16.04 + +services: + - docker + +before_install: + # Install latest Git + - sudo apt-get update + - sudo apt-get install --only-upgrade git + # 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 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 +