aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: ba1a8f62b3c8722b016e4208d15515af2c43d3b3 (plain)
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
language: c

compiler:
  - x86_64-linux-gnu-gcc
  - i686-w64-mingw32-gcc
  - x86_64-w64-mingw32-gcc

addons:
  apt:
    packages:
      - gcc
      - gcc-mingw-w64
      - wine
      - cmake

env:
  - ci_buildsys=cmake ci_variant=static
  - ci_buildsys=cmake ci_variant=shared
  - ci_buildsys=Makefile

jobs:
  include:
    - dist: trusty
      compiler: i586-mingw32msvc-gcc
      addons:
        apt:
          packages:
            - mingw32
            - wine
      env: ci_buildsys=cmake
      # Check that we have a real i586-mingw32msvc-gcc compiler as sometimes it is just a symlink to i686-w64-mingw32-gcc
      before_script: "i586-mingw32msvc-gcc -v 2>&1 | grep -q -x 'Target: i586-mingw32msvc'"

    - dist: trusty
      compiler: i586-mingw32msvc-gcc
      addons:
        apt:
          packages:
            - mingw32
            - wine
      env: ci_buildsys=Makefile
      # Check that we have a real i586-mingw32msvc-gcc compiler as sometimes it is just a symlink to i686-w64-mingw32-gcc
      before_script: "i586-mingw32msvc-gcc -v 2>&1 | grep -q -x 'Target: i586-mingw32msvc'"

  exclude:
    # unsupported
    - compiler: i686-linux-gnu-gcc
      env: ci_buildsys=Makefile
    - compiler: x86_64-linux-gnu-gcc
      env: ci_buildsys=Makefile

script:
  - ci_target=${CC%-*} ./tools/ci-build.sh