File: .travis.yml

package info (click to toggle)
dateutils 0.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,924 kB
  • sloc: ansic: 22,097; makefile: 1,666; yacc: 198; sh: 168; lex: 108
file content (96 lines) | stat: -rw-r--r-- 2,199 bytes parent folder | download | duplicates (2)
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
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
      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"
    ## 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;
    fi
  - if [ "$CHECK" = "distcheck" ]; then
      ./configure --enable-tzmap-fetch || { cat config.log; false; } &&
      make -j2 all && make -j2 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:
    - devel@fresse.org

addons:
  apt:
    packages:
      - gperf
      - texinfo
      - bison
      - flex
      - texlive
  coverity_scan:
    project:
      name: "hroptatyr/dateutils"
      description: "dateutils coverity scan"
    notification_email: devel@fresse.org
    build_command_prepend: "./configure"
    build_command: "make all check"
    branch_pattern: coverity-scan

deploy:
  provider: releases
  api_key:
    secure: WRTz8MTXtkK69Hk/E1iXj4wXxko60vXgmcuW0RaLeRpmphUN9emVUu791W7fQeqx4j/GM32vwGPDa0jdm4dQ2s4ptNpEliisOpx/sGwJsugmeQm/5lSwTMuDwSWoIdWV7HRwsaWodXSzrxFBbZ9g+peTjz28geXp7lDtUCQbWC0=
  file_glob: true
  file: dateutils-*.tar.xz
  skip_cleanup: true
  on:
    tags: true