.travis.yml 1.5 KB
Newer Older
1 2
language: c

R
Rich Salz 已提交
3
addons:
A
Alessandro Ghedini 已提交
4 5 6 7 8 9 10
    apt:
        packages:
            - gcc-5
            - binutils-mingw-w64
            - gcc-mingw-w64
        sources:
            - ubuntu-toolchain-r-test
R
Rich Salz 已提交
11

12
os:
R
Rich Salz 已提交
13 14
    - linux
    - osx
15 16

compiler:
R
Rich Salz 已提交
17 18
    - clang
    - gcc
A
Alessandro Ghedini 已提交
19
    - gcc-5
R
Rich Salz 已提交
20 21
    - i686-w64-mingw32-gcc
    - x86_64-w64-mingw32-gcc
22 23

env:
R
Rich Salz 已提交
24 25
    - CONFIG_OPTS=""
    - CONFIG_OPTS="shared"
A
Alessandro Ghedini 已提交
26
    - CONFIG_OPTS="--debug --strict-warnings"
R
Rich Salz 已提交
27 28

matrix:
A
Alessandro Ghedini 已提交
29 30 31 32
    include:
        - os: linux
          compiler: gcc-5
          env: CONFIG_OPTS="--debug --strict-warnings -fsanitize=address"
R
Rich Salz 已提交
33
    exclude:
A
Alessandro Ghedini 已提交
34 35
        - os: osx
          compiler: gcc-5
R
Rich Salz 已提交
36 37 38 39
        - os: osx
          compiler: i686-w64-mingw32-gcc
        - os: osx
          compiler: x86_64-w64-mingw32-gcc
A
Alessandro Ghedini 已提交
40 41 42 43 44
    allow_failures:
        - compiler: i686-w64-mingw32-gcc
          env: CONFIG_OPTS="--debug --strict-warnings"
        - compiler: x86_64-w64-mingw32-gcc
          env: CONFIG_OPTS="--debug --strict-warnings"
R
Rich Salz 已提交
45 46 47 48

before_script:
    - if [ "$CC" == i686-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
49
          ./Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
R
Rich Salz 已提交
50 51
      elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
52
          ./Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
R
Rich Salz 已提交
53 54 55
      else
          ./config $CONFIG_OPTS;
      fi
56 57

script:
R
Rich Salz 已提交
58 59
    - make
    - if [ -z "$CROSS_COMPILE" ]; then make test; fi
60 61

notifications:
R
Rich Salz 已提交
62
    email:
A
Alessandro Ghedini 已提交
63
        - openssl-commits@openssl.org