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

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

15
os:
R
Rich Salz 已提交
16 17
    - linux
    - osx
18 19

compiler:
R
Rich Salz 已提交
20
    - clang
21
    - clang-3.6
R
Rich Salz 已提交
22
    - gcc
A
Alessandro Ghedini 已提交
23
    - gcc-5
R
Rich Salz 已提交
24 25
    - i686-w64-mingw32-gcc
    - x86_64-w64-mingw32-gcc
26 27

env:
R
Rich Salz 已提交
28 29
    - CONFIG_OPTS=""
    - CONFIG_OPTS="shared"
A
Alessandro Ghedini 已提交
30
    - CONFIG_OPTS="no-asm"
A
Alessandro Ghedini 已提交
31
    - CONFIG_OPTS="--debug --strict-warnings"
R
Rich Salz 已提交
32 33

matrix:
A
Alessandro Ghedini 已提交
34
    include:
35 36 37 38 39
        - os: linux
          compiler: clang-3.6
          env: CONFIG_OPTS="-fsanitize=address"
        - os: linux
          compiler: clang-3.6
40
          env: CONFIG_OPTS="no-asm --debug --strict-warnings -fno-sanitize-recover -fsanitize=address -fsanitize=undefined"
41 42 43
        - os: linux
          compiler: gcc-5
          env: CONFIG_OPTS="-fsanitize=address"
A
Alessandro Ghedini 已提交
44 45
        - os: linux
          compiler: gcc-5
46
          env: CONFIG_OPTS="no-asm --debug --strict-warnings -fno-sanitize-recover -fsanitize=address -fsanitize=undefined"
R
Rich Salz 已提交
47
    exclude:
48 49
        - os: osx
          compiler: clang-3.6
A
Alessandro Ghedini 已提交
50 51
        - os: osx
          compiler: gcc-5
R
Rich Salz 已提交
52 53 54 55
        - os: osx
          compiler: i686-w64-mingw32-gcc
        - os: osx
          compiler: x86_64-w64-mingw32-gcc
56 57 58 59
        - compiler: i686-w64-mingw32-gcc
          env: CONFIG_OPTS="shared"
        - compiler: x86_64-w64-mingw32-gcc
          env: CONFIG_OPTS="shared"
A
Alessandro Ghedini 已提交
60 61 62 63
        - compiler: i686-w64-mingw32-gcc
          env: CONFIG_OPTS="no-asm"
        - compiler: x86_64-w64-mingw32-gcc
          env: CONFIG_OPTS="no-asm"
A
Alessandro Ghedini 已提交
64 65 66 67 68
    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 已提交
69 70 71 72

before_script:
    - if [ "$CC" == i686-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
73
          ./Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
R
Rich Salz 已提交
74 75
      elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
76
          ./Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
R
Rich Salz 已提交
77 78 79
      else
          ./config $CONFIG_OPTS;
      fi
80 81

script:
R
Rich Salz 已提交
82
    - make
83 84 85 86
    - if [ -n "$CROSS_COMPILE" ]; then
          export EXE_SHELL="wine" WINEPREFIX=`pwd`;
      fi
    - make test
87 88

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