-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
38 lines (32 loc) · 899 Bytes
/
.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
# .travis.yml Execution script for role tests on Travis-CI
---
dist: xenial
sudo: required
env:
global:
- ANSIBLE_VERSION=2.9
matrix:
- DISTRIBUTION: centos
VERSION: 7
- DISTRIBUTION: ubuntu
VERSION: 18.04
services:
- docker
before_install:
- sudo apt-get update
- sudo apt-get install --only-upgrade git
- |
for i in docker-tests.sh functional-tests.sh ansible.cfg; do
wget -O docker-tests/${i} https://raw.githubusercontent.com/open-io/ansible-role-openio-skeleton/docker-tests/${i}
done
- sudo pip install --upgrade pip
- sudo pip install ansible-lint yamllint
script:
# Lint
# - ansible-lint . -x ANSIBLE0016
- yamllint .
# Create container and apply test playbook
- ./docker-tests/docker-tests.sh
# Run functional tests on the container
- SUT_IP=172.17.0.2 SUT_ID=$(docker ps -qa) ./docker-tests/functional-tests.sh
...