.travis.yml 4.1 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"
30
    - CONFIG_OPTS="no-pic"
A
Alessandro Ghedini 已提交
31
    - CONFIG_OPTS="no-asm"
R
Rich Salz 已提交
32
    - CONFIG_OPTS="--debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2"
33 34 35 36
    - 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 已提交
37 38

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

before_script:
105
    - sh .travis-create-release.sh $TRAVIS_OS_NAME
106 107
    - tar -xvzf _srcdist.tar.gz
    - cd _srcdist
R
Rich Salz 已提交
108 109
    - if [ "$CC" == i686-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
110
          ./Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
R
Rich Salz 已提交
111 112
      elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
113
          ./Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
R
Rich Salz 已提交
114 115 116
      else
          ./config $CONFIG_OPTS;
      fi
117
    - cd ..
118 119

script:
120
    - cd _srcdist
R
Rich Salz 已提交
121
    - make
122 123 124
    - if [ -n "$CROSS_COMPILE" ]; then
          export EXE_SHELL="wine" WINEPREFIX=`pwd`;
      fi
125
    - HARNESS_VERBOSE=yes make test
126
    - cd ..
127 128

notifications:
R
Rich Salz 已提交
129
    email:
A
Alessandro Ghedini 已提交
130
        - openssl-commits@openssl.org
131