.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
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
    - 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
35
          compiler: clang
E
Emilia Kasper 已提交
36
          env: CONFIG_OPTS="no-shared enable-asan"
37 38 39 40 41 42 43
#        - os: linux
#          compiler: clang-3.6
#          compiler: clang
#          env: CONFIG_OPTS="no-shared enable-asan"
#        - os: linux
#          compiler: clang-3.6
#          env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 -fno-sanitize=alignment"
44
        - os: linux
45
          compiler: gcc-5
46
          env: CONFIG_OPTS="no-shared no-asm enable-rc5 enable-md2"
47 48
        - os: linux
          compiler: gcc-5
49
          env: CONFIG_OPTS="no-asm enable-rc5 enable-md2 -DPEDANTIC"
E
Emilia Kasper 已提交
50 51 52 53 54 55
        - 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 已提交
56
    exclude:
E
Emilia Kasper 已提交
57 58
        - os: linux
          compiler: clang
59 60
        - os: osx
          compiler: gcc
R
Rich Salz 已提交
61 62

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

script:
82
    - cd _build;
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 94 95
    - if [ -n "$DESTDIR" ]; then
          mkdir "../$DESTDIR";
          make install DESTDIR="../$DESTDIR";
      fi
96
    - cd ..
97 98

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