-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
63 lines (56 loc) · 3.19 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
language: c
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "ghARHgz0UWRIrK34xC8fC8L/4WhVJGwHpVxIbK1we2NzhJwyMzsCbw+09NvCy18v3kRxQQZbTfKPGQ6rMyqFi1gi161briypad8XKbFOdNo6UdJR2J5BFCC8nAIoiXcNCUyVklV+fgaMLY1sFboc7Li91N3/zK09Dc9VrYsKGg7EYW3MDweD3aj2MkQcQ75x03vZ5Nin1D3DS1GVxFfawbhqNUnyp9S5EpWibCpKipAE+zhfJEQZZULZLK97/s24s2hUsRFGCqvRipZKIh/qIMe42YTrxQyUSEaYyWRxC0lDjKQ0XU6f/OEQaIAodXgUjMmaarP3ouUIHKGN133q0yVJueDokE+X3daOLUZwnltHKxrMw/nRZHUFvC3VHnS1wHaJ/Ch0fdeS0IaFRCOVuTRBzbzv3b8xdOChMSnpUcjWnFvyF07Yei0UNIchCByoTnaHYeYqmyYWAY05CQJ8vixJC/pNddsm4QhFZvB93LJawQxW0g/ZV1ljmTTXRdoq8pQuG88Qsma1D+mVZs4rgRzqj4daOD5XiyNa2c9LqoY0RfDZbsN88GOOt8WV9LoI8GJYZRNbtLDmSwI80LCtT3L/8kbqFdNWzx9KwGo2+EeT4sxiHHXxktIojSQhxm4OsV9GP3ECT1lJkGeWrg+sR8CQ5a/2kXdyB64ZfezYxDg="
addons:
coverity_scan:
# GitHub project metadata
# ** specific to your project **
project:
name: "Parallel-NetCDF/PnetCDF"
description: "PnetCDF nightly build submitted via Travis CI / Coverity Scan"
build_command_prepend: ./configure
notification_email: [email protected]
build_command: make -s V=1 LIBTOOLFLAGS=--silent tests
branch_pattern: master
before_install:
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
- test -n $CC && unset CC
# apt-package-whitelist can be found in
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
- sudo add-apt-repository ppa:dns/gnu -y
- sudo apt-get update -qq
- sudo apt-get install -y gfortran
- sudo apt-get install -y mpich2
- sudo apt-get install --only-upgrade autoconf
- sudo apt-get install --only-upgrade automake
- sudo apt-get install --only-upgrade libtool
- autoconf --version
- automake --version
- libtool --version
- autoreconf -i
# string substitute for SVN keyword LastChangedDate
# Below is for Redhat
# - DateStr=`stat -f "%Sm" -t "%F %T %z (%a, %d %b %Y)" configure.ac` ; sed -e "s/LastChangedDate/LastChangedDate: $DateStr /g" -i "" configure
# Below is for Ubuntu
# - DateStr=`date -r configure.ac +"%F %T %z (%a, %d %b %Y)"` ; sed -e "s/LastChangedDate/LastChangedDate $DateStr /g" -i configure
# dump the Coverity Scan SCM log file
# - cat /home/travis/build/wkliao/parallel-netcdf/cov-int/scm_log.txt
script: ./travis-run-tests.sh
# continue the above "build_command" for static library only (default)
# - make distcheck -s V=1 LIBTOOLFLAGS=--silent DISTCHECK_CONFIGURE_FLAGS=--silent
# build both static and shared libraries
# - make distcheck -s V=1 LIBTOOLFLAGS=--silent DISTCHECK_CONFIGURE_FLAGS="--silent --enable-shared LDFLAGS='-Wl,--allow-shlib-undefined'"
# build shared library only
# - make distcheck -s V=1 LIBTOOLFLAGS=--silent DISTCHECK_CONFIGURE_FLAGS="--silent --enable-shared --disable-static LDFLAGS='-Wl,--allow-shlib-undefined'"
after_success:
- make -s distclean
after_failure:
- cat ./*/_build/sub/test/*/*.log
- cat ./config.log
- make -s distclean
# - cat /home/travis/build/wkliao/parallel-netcdf/cov-int/build-log.txt
notifications:
email: false