.travis.yml 2.8 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"
R
Rich Salz 已提交
31
    - CONFIG_OPTS="--debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2"
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
R
Rich Salz 已提交
40
          env: CONFIG_OPTS="no-asm --debug --strict-warnings -fno-sanitize-recover -fsanitize=address -fsanitize=undefined enable-crypto-mdebug enable-rc5 enable-md2"
41 42 43
        - os: linux
          compiler: gcc-5
          env: CONFIG_OPTS="-fsanitize=address"
A
Alessandro Ghedini 已提交
44 45
        - os: linux
          compiler: gcc-5
R
Rich Salz 已提交
46
          env: CONFIG_OPTS="no-asm --debug --strict-warnings -fno-sanitize-recover -fsanitize=address -fsanitize=undefined enable-crypto-mdebug enable-rc5 enable-md2"
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
    allow_failures:
        - compiler: i686-w64-mingw32-gcc
R
Rich Salz 已提交
66
          env: CONFIG_OPTS="--debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2"
A
Alessandro Ghedini 已提交
67
        - compiler: x86_64-w64-mingw32-gcc
R
Rich Salz 已提交
68
          env: CONFIG_OPTS="--debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2"
R
Rich Salz 已提交
69 70

before_script:
71
    - sh .travis-create-release.sh $TRAVIS_OS_NAME
72 73
    - tar -xvzf _srcdist.tar.gz
    - cd _srcdist
R
Rich Salz 已提交
74 75
    - if [ "$CC" == i686-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
76
          ./Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
R
Rich Salz 已提交
77 78
      elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
79
          ./Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
R
Rich Salz 已提交
80 81 82
      else
          ./config $CONFIG_OPTS;
      fi
83
    - cd ..
84 85

script:
86
    - cd _srcdist
R
Rich Salz 已提交
87
    - make
88 89 90 91
    - if [ -n "$CROSS_COMPILE" ]; then
          export EXE_SHELL="wine" WINEPREFIX=`pwd`;
      fi
    - make test
92
    - cd ..
93 94

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