forked from milter-manager/milter-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (60 loc) · 2.06 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
notifications:
webhooks:
- https://webhook.commit-email.info/
dist: xenial
addons:
apt:
packages:
- docker-compose
services:
- docker
matrix:
include:
- name: Ubuntu 16.04
env:
TARGET_DISTRIBUTION: ubuntu-xenial
- name: Ubuntu 18.04
env:
TARGET_DISTRIBUTION: ubuntu-bionic
- name: Ubuntu 19.04
env:
TARGET_DISTRIBUTION: ubuntu-disco
- name: Debian GNU/Linux stretch
env:
TARGET_DISTRIBUTION: debian-stretch
- name: Debian GNU/Linux buster
env:
TARGET_DISTRIBUTION: debian-buster
- name: Debian GNU/Linux sid
env:
TARGET_DISTRIBUTION: debian-sid
- name: CentOS 7
env:
TARGET_DISTRIBUTION: centos-7
before_script:
- docker-compose build ${TARGET_DISTRIBUTION}
- docker-compose ps
- docker-compose up -d ${TARGET_DISTRIBUTION}
- docker-compose exec
--user root
--workdir /
${TARGET_DISTRIBUTION}
rsyslogd -f /etc/rsyslog.conf
- docker-compose exec ${TARGET_DISTRIBUTION} ./autogen.sh
- docker-compose exec ${TARGET_DISTRIBUTION}
./configure
--enable-coverage
--with-default-connection-spec="inet:10025@[127.0.0.1]"
- docker-compose exec ${TARGET_DISTRIBUTION} make
script:
#- docker-compose exec ${TARGET_DISTRIBUTION} env TZ=Asia/Tokyo make check
- docker-compose exec ${TARGET_DISTRIBUTION} ./binding/ruby/test/run-test.sh
- docker-compose exec ${TARGET_DISTRIBUTION} ./test/run-test.sh
#- docker-compose exec ${TARGET_DISTRIBUTION} ./test/tool/run-test.sh
after_success:
- docker-compose exec ${TARGET_DISTRIBUTION} lcov --compat-libtool --directory . --capture --rc lcov_branch_coverage=1 --output-file coverage.info
- docker-compose exec ${TARGET_DISTRIBUTION} coveralls-lcov -v --service-job-id=${TRAVIS_JOB_ID} coverage.info
# after_failure:
# - docker-compose exec ${TARGET_DISTRIBUTION} cat test/test-suite.log
# - docker-compose exec ${TARGET_DISTRIBUTION} cat binding/ruby/test/test-suite.log
# - docker-compose exec ${TARGET_DISTRIBUTION} cat test/tool/test-suite.log