.travis.yml 2.7 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
        - os: linux
R
Rich Salz 已提交
38
          compiler: clang-3.6
M
Matt Caswell 已提交
39
          env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method -fno-sanitize=alignment"
R
Rich Salz 已提交
40 41 42
        - os: linux
          compiler: clang-3.6
          env: CONFIG_OPTS="no-shared no-asm enable-asan enable-rc5 enable-md2"
43 44
        - os: linux
          compiler: gcc-5
R
Rich Salz 已提交
45
          env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 -DPEDANTIC"
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;
79
    - make update
R
Rich Salz 已提交
80
    - make
E
Emilia Kasper 已提交
81
    - if [ -z "$BUILDONLY" ]; then
E
Emilia Kasper 已提交
82 83 84
          if [ -n "$CROSS_COMPILE" ]; then
              export EXE_SHELL="wine" WINEPREFIX=`pwd`;
          fi;
E
Emilia Kasper 已提交
85
          HARNESS_VERBOSE=yes make test;
86 87
      else
          make build_tests;
88
      fi
89 90
    - if [ -n "$DESTDIR" ]; then
          mkdir "../$DESTDIR";
91
          make install install_docs DESTDIR="../$DESTDIR";
92
      fi
93
    - cd ..
94 95

notifications:
R
Rich Salz 已提交
96
    email:
A
Alessandro Ghedini 已提交
97
        - openssl-commits@openssl.org
98