.travis.yml 2.9 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 27 28 29
    - CONFIG_OPTS=""
    - CONFIG_OPTS="--debug no-shared enable-crypto-mdebug enable-rc5 enable-md2"
    - CONFIG_OPTS="--strict-warnings no-shared" BUILDONLY="yes"
    - CONFIG_OPTS="--classic no-shared" BUILDONLY="yes"
30
    - CONFIG_OPTS="--classic" BUILDONLY="yes"
31
    - CONFIG_OPTS="no-pic --strict-warnings" BUILDONLY="yes"
32
    - CONFIG_OPTS="no-engine no-shared --strict-warnings" BUILDONLY="yes"
R
Rich Salz 已提交
33 34

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

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

script:
86
    - if echo "$CONFIG_OPTS" | grep -e "--classic" >/dev/null; then
87
          cd _srcdist;
88 89
      else
          cd _build;
90
      fi
R
Rich Salz 已提交
91
    - make
E
Emilia Kasper 已提交
92
    - if [ -z "$BUILDONLY" ]; then
E
Emilia Kasper 已提交
93 94 95
          if [ -n "$CROSS_COMPILE" ]; then
              export EXE_SHELL="wine" WINEPREFIX=`pwd`;
          fi;
E
Emilia Kasper 已提交
96
          HARNESS_VERBOSE=yes make test;
97 98
      else
          make build_tests;
99
      fi
100
    - cd ..
101 102

notifications:
R
Rich Salz 已提交
103
    email:
A
Alessandro Ghedini 已提交
104
        - openssl-commits@openssl.org
105