forked from universal-ctags/ctags
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (35 loc) · 1.27 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
#
# 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: "autoreconf -f -i -v ; ./configure ; make clean"
build_command: "make -j 4"
branch_pattern: master
# Only with gcc get the mingw-w64 cross compilers
before_install:
- if [ $CC = 'gcc' ] && [ $TRAVIS_OS_NAME = 'linux' ]; then sudo apt-get update -qq; sudo apt-get install -y binutils-mingw-w64-i686 gcc-mingw-w64-i686; fi
# Build and run tests. Only with gcc cross compile
script:
- autoreconf -f -i -v
- ./configure
- make -j2
- make check TRAVIS=1
- if [ $CC = 'gcc' ] && [ $TRAVIS_OS_NAME = 'linux' ]; then make distclean; make -f mk_mingw.mak CC=i686-w64-mingw32-gcc; fi