.travis.yml 3.0 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 63 64 65 66 67 68 69 70 71 72
    - if [ -n "$DESTDIR" ]; then
          sh .travis-create-release.sh $TRAVIS_OS_NAME;
          tar -xvzf _srcdist.tar.gz;
          mkdir _build;
          cd _build;
          srcdir=../_srcdist;
          top=..;
      else
          srcdir=.;
          top=.;
      fi
R
Rich Salz 已提交
73 74
    - if [ "$CC" == i686-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
75
          $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
R
Rich Salz 已提交
76 77
      elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
78
          $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
R
Rich Salz 已提交
79
      else
80
          if which ccache >/dev/null && [ "$CC" != clang-3.6 ]; then
81
              CC="ccache $CC";
82
          fi;
83
          $srcdir/config $CONFIG_OPTS;
R
Rich Salz 已提交
84
      fi
85
    - cd $top
86 87

script:
88 89 90 91 92 93
    - if [ -n "$DESTDIR" ]; then
          cd _build;
          top=..;
      else
          top=.;
      fi
94
    - make update
R
Rich Salz 已提交
95
    - make
E
Emilia Kasper 已提交
96
    - if [ -z "$BUILDONLY" ]; then
E
Emilia Kasper 已提交
97 98 99
          if [ -n "$CROSS_COMPILE" ]; then
              export EXE_SHELL="wine" WINEPREFIX=`pwd`;
          fi;
E
Emilia Kasper 已提交
100
          HARNESS_VERBOSE=yes make test;
101 102
      else
          make build_tests;
103
      fi
104 105
    - if [ -n "$DESTDIR" ]; then
          mkdir "../$DESTDIR";
106
          make install install_docs DESTDIR="../$DESTDIR";
107
      fi
108
    - cd $top
109 110

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