forked from bertvv/ansible-role-samba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (32 loc) · 947 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
---
sudo: required
env:
matrix:
- DISTRIBUTION: centos
VERSION: 7
- DISTRIBUTION: ubuntu
VERSION: 18.04
- DISTRIBUTION: debian
VERSION: 9
- DISTRIBUTION: fedora
VERSION: 29
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
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/