.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
54 55
        - os: osx
          compiler: gcc
A
Alessandro Ghedini 已提交
56 57
        - os: osx
          compiler: gcc-5
R
Rich Salz 已提交
58 59 60 61
        - os: osx
          compiler: i686-w64-mingw32-gcc
        - os: osx
          compiler: x86_64-w64-mingw32-gcc
62 63 64 65
        - compiler: i686-w64-mingw32-gcc
          env: CONFIG_OPTS="shared"
        - compiler: x86_64-w64-mingw32-gcc
          env: CONFIG_OPTS="shared"
A
Alessandro Ghedini 已提交
66 67 68 69
        - compiler: i686-w64-mingw32-gcc
          env: CONFIG_OPTS="no-asm"
        - compiler: x86_64-w64-mingw32-gcc
          env: CONFIG_OPTS="no-asm"
70 71 72 73 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"
        - 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 已提交
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"
R
Rich Salz 已提交
87 88

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

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

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