.travis.yml 3.6 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"
32 33 34 35
    - CONFIG_OPTS="--unified"
    - CONFIG_OPTS="--unified shared"
    - CONFIG_OPTS="--unified no-asm"
    - CONFIG_OPTS="--unified --debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2"
R
Rich Salz 已提交
36 37

matrix:
A
Alessandro Ghedini 已提交
38
    include:
39 40 41 42 43
        - os: linux
          compiler: clang-3.6
          env: CONFIG_OPTS="-fsanitize=address"
        - os: linux
          compiler: clang-3.6
R
Rich Salz 已提交
44
          env: CONFIG_OPTS="no-asm --debug --strict-warnings -fno-sanitize-recover -fsanitize=address -fsanitize=undefined enable-crypto-mdebug enable-rc5 enable-md2"
45 46 47
        - os: linux
          compiler: gcc-5
          env: CONFIG_OPTS="-fsanitize=address"
A
Alessandro Ghedini 已提交
48 49
        - os: linux
          compiler: gcc-5
R
Rich Salz 已提交
50
          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 已提交
51
    exclude:
52 53
        - os: osx
          compiler: clang-3.6
A
Alessandro Ghedini 已提交
54 55
        - os: osx
          compiler: gcc-5
R
Rich Salz 已提交
56 57 58 59
        - os: osx
          compiler: i686-w64-mingw32-gcc
        - os: osx
          compiler: x86_64-w64-mingw32-gcc
60 61 62 63
        - compiler: i686-w64-mingw32-gcc
          env: CONFIG_OPTS="shared"
        - compiler: x86_64-w64-mingw32-gcc
          env: CONFIG_OPTS="shared"
A
Alessandro Ghedini 已提交
64 65 66 67
        - compiler: i686-w64-mingw32-gcc
          env: CONFIG_OPTS="no-asm"
        - compiler: x86_64-w64-mingw32-gcc
          env: CONFIG_OPTS="no-asm"
68 69 70 71 72 73 74 75
        - compiler: i686-w64-mingw32-gcc
          env: CONFIG_OPTS="--unified shared"
        - compiler: x86_64-w64-mingw32-gcc
          env: CONFIG_OPTS="--unified shared"
        - compiler: i686-w64-mingw32-gcc
          env: CONFIG_OPTS="--unified no-asm"
        - compiler: x86_64-w64-mingw32-gcc
          env: CONFIG_OPTS="--unified no-asm"
A
Alessandro Ghedini 已提交
76 77
    allow_failures:
        - compiler: i686-w64-mingw32-gcc
R
Rich Salz 已提交
78
          env: CONFIG_OPTS="--debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2"
A
Alessandro Ghedini 已提交
79
        - compiler: x86_64-w64-mingw32-gcc
R
Rich Salz 已提交
80
          env: CONFIG_OPTS="--debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2"
81 82 83 84
        - compiler: i686-w64-mingw32-gcc
          env: CONFIG_OPTS="--unified --debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2"
        - compiler: x86_64-w64-mingw32-gcc
          env: CONFIG_OPTS="--unified --debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2"
R
Rich Salz 已提交
85 86

before_script:
87
    - sh .travis-create-release.sh $TRAVIS_OS_NAME
88 89
    - tar -xvzf _srcdist.tar.gz
    - cd _srcdist
R
Rich Salz 已提交
90 91
    - if [ "$CC" == i686-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
92
          ./Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
R
Rich Salz 已提交
93 94
      elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
95
          ./Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
R
Rich Salz 已提交
96 97 98
      else
          ./config $CONFIG_OPTS;
      fi
99
    - cd ..
100 101

script:
102
    - cd _srcdist
R
Rich Salz 已提交
103
    - make
104 105 106 107
    - if [ -n "$CROSS_COMPILE" ]; then
          export EXE_SHELL="wine" WINEPREFIX=`pwd`;
      fi
    - make test
108
    - cd ..
109 110

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