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

R
Rich Salz 已提交
4
addons:
A
Alessandro Ghedini 已提交
5 6
    apt:
        packages:
7
            - ccache
R
Rich Salz 已提交
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:
R
Rich Salz 已提交
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
    - CONFIG_OPTS="" DESTDIR="_install"
27 28
    - 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
        - os: linux
R
Rich Salz 已提交
35
          compiler: clang-3.6
E
Emilia Kasper 已提交
36
          env: CONFIG_OPTS="no-shared enable-asan"
37 38 39
        - os: linux
          compiler: clang-3.6
          env: CONFIG_OPTS="no-shared enable-msan"
40
        - os: linux
R
Rich Salz 已提交
41
          compiler: clang-3.6
M
Matt Caswell 已提交
42
          env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method -fno-sanitize=alignment"
R
Rich Salz 已提交
43 44 45
        - os: linux
          compiler: clang-3.6
          env: CONFIG_OPTS="no-shared no-asm enable-asan enable-rc5 enable-md2"
46 47
        - os: linux
          compiler: gcc-5
R
Rich Salz 已提交
48
          env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 -DPEDANTIC"
E
Emilia Kasper 已提交
49 50 51 52 53 54
        - 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 已提交
55
    exclude:
E
Emilia Kasper 已提交
56 57
        - os: linux
          compiler: clang
58 59
        - os: osx
          compiler: gcc
R
Rich Salz 已提交
60 61

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

script:
81
    - cd _build;
82
    - make update
R
Rich Salz 已提交
83
    - make
E
Emilia Kasper 已提交
84
    - if [ -z "$BUILDONLY" ]; then
E
Emilia Kasper 已提交
85 86 87
          if [ -n "$CROSS_COMPILE" ]; then
              export EXE_SHELL="wine" WINEPREFIX=`pwd`;
          fi;
E
Emilia Kasper 已提交
88
          HARNESS_VERBOSE=yes make test;
89 90
      else
          make build_tests;
91
      fi
92 93
    - if [ -n "$DESTDIR" ]; then
          mkdir "../$DESTDIR";
94
          make install install_docs DESTDIR="../$DESTDIR";
95
      fi
96
    - cd ..
97 98

notifications:
R
Rich Salz 已提交
99
    email:
A
Alessandro Ghedini 已提交
100
        - openssl-commits@openssl.org
101