-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy path.travis.yml
110 lines (97 loc) · 2.53 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
language: c
sudo: false
os:
- linux
compiler:
- gcc
- clang
env:
global:
- secure: "GFjrqOUyqNLrPGtxNW4r9JxJBudjddBJFzEEcpPkfEbMHJ+kk4zOYsSLV1f1cAK+X8TWLsCq5Yjt/2Rzhu7Csjiy34RReZ9KwsmcwX78T8MkQQz4yv8by9J9a5mbHQ3S6mtF7PH1t38PKVcJi51icEqUjvi4FnfME5+VrdueE+c="
matrix:
- CHECK="normal"
matrix:
include:
## distcheck
- os: linux
dist: focal
compiler: gcc
env: CHECK="distcheck"
## Ubuntu 14.04 Trusty (beta), sudo required!
- os: linux
dist: trusty
sudo: required
compiler: gcc
env: TRUSTY="yes" CHECK="normal"
## Ubuntu 16.04 Xenial, sudo required!
- os: linux
dist: xenial
sudo: required
compiler: gcc
env: TRUSTY="yes" CHECK="normal"
## Ubuntu 18.04 Bionic, sudo required!
- os: linux
dist: bionic
sudo: required
compiler: gcc
env: TRUSTY="yes" CHECK="normal"
## OSX
- os: osx
compiler: clang
env: CHECK="normal"
before_install:
- if test "$TRUSTY" = "yes"; then
echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt;
fi
before_script:
- autoreconf -vfi
script:
- if [ "$CHECK" = "normal" ]; then
./configure --enable-contrib || { cat config.log; false; } &&
make -j2 clean && make -j2 check || { cat test/test-suite.log; false; } ;
fi
- if [ "$CHECK" = "distcheck" ]; then
./configure --enable-tzmap-fetch || { cat config.log; false; } &&
make -j2 all && make -j1 distcheck;
fi
after_script:
# find test log from check as well as from distcheck
- find -name test-suite.log | xargs -r cat
## whitelist
branches:
only:
- master
- next
- coverity-scan
- /^travis.*/
- /^tmp.*/
- /^v\d+\..*/
notifications:
email:
addons:
apt:
packages:
- gperf
- texinfo
- bison
- flex
- texlive
coverity_scan:
project:
name: "hroptatyr/dateutils"
description: "dateutils coverity scan"
notification_email: [email protected]
build_command_prepend: "./configure"
build_command: "make all check"
branch_pattern: coverity-scan
deploy:
provider: releases
api_key:
secure: "Ro2TJvcaJnA3h4YPedB7YFzvxjB93OTdzChu+gj4mvVvf8s7GFBYiTeieTtgeAVioOQGP/9Aovra7swtd9kLUT3GeV1i9G8PSG2chJstMpvM2L5/W71b9vjS5PkmvlLIKvmK31PXmU9EAdxy4aFIETZNC11bOOknaKDaWt87EIE="
file_glob: true
file: dateutils-*.tar.xz
skip_cleanup: true
draft: true
on:
tags: true