.travis.yml 2.6 KB
Newer Older
1
language: c
2
cache: ccache
3

R
Rich Salz 已提交
4
addons:
A
Alessandro Ghedini 已提交
5 6
    apt:
        packages:
7
            - ccache
8
            - clang-3.6
A
Alessandro Ghedini 已提交
9
            - gcc-5
E
Emilia Kasper 已提交
10 11 12
            - binutils-mingw-w64
            - gcc-mingw-w64
            - wine
A
Alessandro Ghedini 已提交
13
        sources:
14
            - llvm-toolchain-precise-3.6
A
Alessandro Ghedini 已提交
15
            - ubuntu-toolchain-r-test
R
Rich Salz 已提交
16

17
os:
R
Rich Salz 已提交
18 19
    - linux
    - osx
20 21

compiler:
R
Rich Salz 已提交
22 23
    - clang
    - gcc
24 25

env:
26 27 28
    - CONFIG_OPTS=""
    - CONFIG_OPTS="--debug no-shared enable-crypto-mdebug enable-rc5 enable-md2"
    - CONFIG_OPTS="--strict-warnings no-shared" BUILDONLY="yes"
29
    - CONFIG_OPTS="no-pic --strict-warnings" BUILDONLY="yes"
30
    - CONFIG_OPTS="no-engine no-shared --strict-warnings" BUILDONLY="yes"
R
Rich Salz 已提交
31 32

matrix:
A
Alessandro Ghedini 已提交
33
    include:
34 35
        - os: linux
          compiler: clang-3.6
36
          env: CONFIG_OPTS="-fsanitize=address no-shared"
37 38
        - os: linux
          compiler: clang-3.6
39
          env: CONFIG_OPTS="no-shared no-asm -fno-sanitize-recover -fsanitize=address -fsanitize=undefined enable-rc5 enable-md2 -fno-sanitize=alignment"
40 41
        - os: linux
          compiler: gcc-5
42
          env: CONFIG_OPTS="no-shared -fsanitize=address"
A
Alessandro Ghedini 已提交
43 44
        - os: linux
          compiler: gcc-5
45
          env: CONFIG_OPTS="no-shared no-asm -fno-sanitize-recover -DPEDANTIC -fsanitize=address -fsanitize=undefined enable-rc5 enable-md2"
E
Emilia Kasper 已提交
46 47 48 49 50 51
        - os: linux
          compiler: i686-w64-mingw32-gcc
          env: CONFIG_OPTS="no-pic"
        - os: linux
          compiler: x86_64-w64-mingw32-gcc
          env: CONFIG_OPTS="no-pic"
R
Rich Salz 已提交
52
    exclude:
E
Emilia Kasper 已提交
53 54
        - os: linux
          compiler: clang
55 56
        - os: osx
          compiler: gcc
R
Rich Salz 已提交
57 58

before_script:
59
    - sh .travis-create-release.sh $TRAVIS_OS_NAME
60
    - tar -xvzf _srcdist.tar.gz
61 62
    - mkdir _build;
    - cd _build;
R
Rich Salz 已提交
63 64
    - if [ "$CC" == i686-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
R
Richard Levitte 已提交
65
          ../_srcdist/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
R
Rich Salz 已提交
66 67
      elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
R
Richard Levitte 已提交
68
          ../_srcdist/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
R
Rich Salz 已提交
69
      else
70
          if which ccache >/dev/null && [ "$CC" != clang-3.6 ]; then
71
              CC="ccache $CC";
72
          fi;
R
Richard Levitte 已提交
73
          ../_srcdist/config $CONFIG_OPTS;
R
Rich Salz 已提交
74
      fi
75
    - cd ..
76 77

script:
78
    - cd _build;
R
Rich Salz 已提交
79
    - make
E
Emilia Kasper 已提交
80
    - if [ -z "$BUILDONLY" ]; then
E
Emilia Kasper 已提交
81 82 83
          if [ -n "$CROSS_COMPILE" ]; then
              export EXE_SHELL="wine" WINEPREFIX=`pwd`;
          fi;
E
Emilia Kasper 已提交
84
          HARNESS_VERBOSE=yes make test;
85 86
      else
          make build_tests;
87
      fi
88
    - cd ..
89 90

notifications:
R
Rich Salz 已提交
91
    email:
A
Alessandro Ghedini 已提交
92
        - openssl-commits@openssl.org
93