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

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

before_script:
95
    - sh .travis-create-release.sh $TRAVIS_OS_NAME
96 97
    - tar -xvzf _srcdist.tar.gz
    - cd _srcdist
R
Rich Salz 已提交
98 99
    - if [ "$CC" == i686-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
100
          ./Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
R
Rich Salz 已提交
101 102
      elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
103
          ./Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
R
Rich Salz 已提交
104 105 106
      else
          ./config $CONFIG_OPTS;
      fi
107
    - cd ..
108 109

script:
110
    - cd _srcdist
R
Rich Salz 已提交
111
    - make
112 113 114
    - if [ -n "$CROSS_COMPILE" ]; then
          export EXE_SHELL="wine" WINEPREFIX=`pwd`;
      fi
115
    - HARNESS_VERBOSE=yes make test
116
    - cd ..
117 118

notifications:
R
Rich Salz 已提交
119
    email:
A
Alessandro Ghedini 已提交
120
        - openssl-commits@openssl.org
121