]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/unifdef/.travis.yml
Add 'contrib/unifdef/' from commit '0da44885831dc0a43c4ca6ff04a2430993cc0a80'
[FreeBSD/FreeBSD.git] / contrib / unifdef / .travis.yml
1 language: c
2
3 sudo: false
4
5 os:
6   - linux
7   - osx
8
9 compiler:
10   - gcc
11   - clang
12
13 matrix:
14   include:
15     ## Ubuntu 14.04 Trusty (beta), sudo required!
16     - os: linux
17       dist: trusty
18       sudo: required
19       compiler: gcc
20       env: TRUSTY="yes"
21     - os: linux
22       dist: trusty
23       sudo: required
24       compiler: clang
25       env: TRUSTY="yes"
26     ## MinGW / wine
27     - os: linux
28       sudo: required
29       compiler: i586-mingw32msvc-gcc
30       env: BUILD_MINGW="yes"
31   allow_failures:
32     - compiler: i586-mingw32msvc-gcc
33
34 install:
35   - env | grep -v "encrypted" | LC_ALL=C sort
36   - if test "${BUILD_MINGW}" = "yes"; then
37       sudo apt-get -qq update &&
38       sudo apt-get -qq install wine;
39     fi
40
41 script:
42   - if test "${BUILD_MINGW}" != "yes"; then
43       make &&
44       make test &&
45       make release;
46     else
47       export CC=i586-mingw32msvc-gcc;
48       echo -e '#!/bin/bash\nexec wine $0.exe "$@"' > unifdef;
49       chmod ugo+x unifdef;
50       make version.h &&
51       make -f win32/Makefile.mingw test;
52     fi
53
54 branches:
55   only:
56     - master
57     - next
58     - /^travis.*/
59     - /^tmp.*/