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

matrix:
A
Alessandro Ghedini 已提交
35
    include:
36 37 38 39 40
        - os: linux
          compiler: clang-3.6
          env: CONFIG_OPTS="-fsanitize=address"
        - os: linux
          compiler: clang-3.6
E
Emilia Kasper 已提交
41
          env: CONFIG_OPTS="no-asm --strict-warnings -fno-sanitize-recover -fsanitize=address -fsanitize=undefined enable-rc5 enable-md2"
42 43 44
        - os: linux
          compiler: gcc-5
          env: CONFIG_OPTS="-fsanitize=address"
A
Alessandro Ghedini 已提交
45 46
        - os: linux
          compiler: gcc-5
E
Emilia Kasper 已提交
47
          env: CONFIG_OPTS="no-asm --strict-warnings -fno-sanitize-recover -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 79
          if which ccache >/dev/null; then
              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
      fi
98
    - cd ..
99 100

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