xref: /freebsd/contrib/unifdef/.travis.yml (revision e0c4386e)
1language: c
2
3sudo: false
4
5os:
6  - linux
7  - osx
8
9compiler:
10  - gcc
11  - clang
12
13matrix:
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
34install:
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
41script:
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
54branches:
55  only:
56    - master
57    - next
58    - /^travis.*/
59    - /^tmp.*/
60