forked from libyal/libbde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (62 loc) · 2.67 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
language: c
env:
global:
# Encrypted COVERITY_SCAN_TOKEN
- secure: "Ni+RTiameIuVp20aoVAtVUL1PapJw9ceovXHbXACnN0YS1DiFDdhD19rGGhfjNBNqdoGVGsbNGbnaMwB3S1uFO/uhPgxD+m0URoiARwHQFLrQPn97gVz9u5UCjiNoEZO6dsOXXqjxGpBgR1kExVz+h9CTx3BFIkGjReOFLtjsD8="
matrix:
include:
- env: TARGET="coverity"
compiler: clang
os: linux
dist: trusty
sudo: required
group: edge
addons:
coverity_scan:
project:
name: "libyal/libbde"
description: "Build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: "./synclibs.sh && ./autogen.sh && ./configure"
build_command: "make -j4"
branch_pattern: master
- env: TARGET="linux-clang"
compiler: clang
os: linux
dist: trusty
sudo: required
group: edge
- env: TARGET="linux-gcc"
compiler: gcc
os: linux
dist: trusty
sudo: required
group: edge
- env: TARGET="macos-clang"
compiler: clang
os: osx
osx_image: xcode8.3
- env: TARGET="macos-gcc"
compiler: gcc
os: osx
osx_image: xcode8.3
- env: TARGET="shared"
compiler: gcc
os: linux
dist: trusty
sudo: required
group: edge
before_install:
- if test ${TRAVIS_OS_NAME} = "linux"; then sudo apt-get update && sudo apt-mark hold oracle-java9-installer postgresql-9.2 postgresql-9.3 postgresql-9.4 postgresql-9.5 postgresql-9.6 postgresql-client postgresql-client-common postgresql-common postgresql-contrib-9.2 postgresql-contrib-9.3 postgresql-contrib-9.4 postgresql-contrib-9.5 postgresql-contrib-9.6 postgresql-doc && sudo apt-get --fix-missing -o Dpkg::Options::="--force-confold" upgrade -y && sudo apt-get install -y autopoint libssl-dev libfuse-dev; fi
- if test ${TRAVIS_OS_NAME} = "osx"; then brew update && brew install gettext gnu-sed && brew link --force gettext; fi
- if test ${TARGET} = "coverity"; 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-; fi
install:
- if test ${TRAVIS_OS_NAME} = "osx"; then export SED="/usr/local/bin/gsed"; fi
- ./synclibs.sh --use-head && ./autogen.sh
- if test ${TARGET} = "shared"; then ./configure > /dev/null && make > /dev/null && ./syncsharedlibs.sh --use-head; fi
- if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
script:
- if test ${TRAVIS_OS_NAME} = "linux"; then export PATH=$(echo $PATH | tr ":" "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s/::/:/g"); fi
- if test ${TARGET} != "coverity"; then ./runtests.sh; fi
after_success:
- if test ${TARGET} = "linux-gcc"; then curl -o codecov.sh -s https://codecov.io/bash && /bin/bash ./codecov.sh; fi