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

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

15
os:
R
Rich Salz 已提交
16 17
    - linux
    - osx
18 19

compiler:
R
Rich Salz 已提交
20 21
    - clang
    - gcc
22 23

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

matrix:
A
Alessandro Ghedini 已提交
31
    include:
32
        - os: linux
33
          compiler: clang
E
Emilia Kasper 已提交
34
          env: CONFIG_OPTS="no-shared enable-asan"
35
        - os: linux
36
          compiler: gcc-5
E
Emilia Kasper 已提交
37
          env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 -fno-sanitize=alignment"
38 39
        - os: linux
          compiler: gcc-5
E
Emilia Kasper 已提交
40
          env: CONFIG_OPTS="no-shared no-asm enable-asan enable-rc5 enable-md2"
A
Alessandro Ghedini 已提交
41 42
        - os: linux
          compiler: gcc-5
E
Emilia Kasper 已提交
43
          env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 -DPEDANTIC"
E
Emilia Kasper 已提交
44 45 46 47 48 49
        - 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 已提交
50
    exclude:
E
Emilia Kasper 已提交
51 52
        - os: linux
          compiler: clang
53 54
        - os: osx
          compiler: gcc
R
Rich Salz 已提交
55 56

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

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

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