forked from universal-ctags/ctags
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
79 lines (68 loc) · 2.03 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
#
# Derived from
# https://github.com/steveno/ctags/blob/master/.travis.yml
#
language: c
os:
- linux
- osx
compiler:
- gcc
- clang
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: "FZunj1O8PR/2DEEN1tUAFzSxeo3jf2oOLkP7SmOSdeZ8W8QPo/5Nfhlhl0uambYOXOre/p/mCNXjudtsTwKHtq4uP6fejjPJl5cmHBCm/KtIoLnUaDyaSjoq6tKi2duJJhwY9H6X5ILtDxWveRbs5NhmKo9H+c1vHsBg0Wbuslg="
addons:
coverity_scan:
project:
name: "fishman/ctags"
description: "Build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: "./autogen.sh ; ./configure ; make clean"
build_command: "make -j 4 CFLAGS=-O0"
branch_pattern: master
sudo: false
addons:
apt:
packages:
- lcov
- binutils-mingw-w64-i686
- gcc-mingw-w64-i686
- libjansson-dev
- libyaml-dev
- libseccomp-dev
env:
- TARGET=Unix
- TARGET=Mingw32
# Only with gcc get the mingw-w64 cross compilers
before_install:
- |
if [ $CC = 'gcc' ] && [ $TRAVIS_OS_NAME = 'linux' ]; then
gem install lcoveralls
fi
# Build and run tests. Only with gcc cross compile
script:
- ./misc/travis-check.sh
after_success:
- |
if [ $CC = 'gcc' ] && [ $TRAVIS_OS_NAME = 'linux' ]; then
(
for f in /home/travis/.rvm/gems/ruby-2*/gems/lcoveralls-*/lib/lcoveralls/color_formatter.rb; do
sed -i -e 's/severity.capitalize!/severity = severity.capitalize/' $f
done
) || :
lcov -c -b . -d . -o coverage.info && lcoveralls --root . --retry-count 5 coverage.info
fi
# Build Matrix configuration
# By default Travis CI runs all possible environment/target combinations.
# This setting allows the exclusion of undesired combination.
# For more information:
# http://docs.travis-ci.com/user/customizing-the-build/#Build-Matrix
matrix:
exclude:
- compiler: clang
env: TARGET=Mingw32
- os: osx
env: TARGET=Mingw32