-
Notifications
You must be signed in to change notification settings - Fork 56
/
.travis.yml
69 lines (64 loc) · 1.7 KB
/
.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
language: bash
dist: xenial
sudo: enabled
branches:
only:
- master
- development
- testing
matrix:
include:
- name: "CentOS 6"
env:
- DISTRO='centos:6'
- name: "CentOS 7"
env:
- DISTRO='centos:7'
- name: "Ubuntu 14.04 (trusty)"
env:
- DISTRO='ubuntu:14.04'
- name: "Ubuntu 16.04 (xenial)"
env:
- DISTRO='ubuntu:16.04'
- name: "Ubuntu 18.04 (bionic)"
env:
- DISTRO='ubuntu:18.04'
- name: "Debian 8 (jessie)"
env:
- DISTRO='debian:8'
- name: "Debian 9 (stretch)"
env:
- DISTRO='debian:9'
- name: "Debian (buster)"
env:
- DISTRO='debian:buster'
- name: "Fedora (latest)"
env:
- DISTRO='fedora:latest'
- name: "Fedora (rawhide)"
env:
- DISTRO='fedora:rawhide'
before_install:
- docker pull ${DISTRO}
install:
- |
docker run \
--detach \
--rm \
--tty \
--privileged \
--network=host \
--name recap_on_${DISTRO/:/_} \
--mount type=bind,src="$(pwd)",dst=/recap \
${DISTRO}
- docker exec recap_on_${DISTRO/:/_} /recap/tests/install_deps.sh ${DISTRO}
- docker exec recap_on_${DISTRO/:/_} /recap/tests/test_install_recap.sh
script:
- docker exec recap_on_${DISTRO/:/_} bash -c 'recap --version'
- docker exec recap_on_${DISTRO/:/_} bash -c 'recaplog --version'
- docker exec recap_on_${DISTRO/:/_} /recap/tests/run_recap.sh
- docker exec recap_on_${DISTRO/:/_} bash -c 'ls -tr /var/log/recap/*log | xargs tail -v -n+0'
- docker exec recap_on_${DISTRO/:/_} /recap/tests/run_recaplog.sh
- docker exec recap_on_${DISTRO/:/_} bash -c 'tail -v -n+0 /var/log/recap/recaplog.log'
...