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

E
Emilia Kasper 已提交
4
before_install:
A
Andy Polyakov 已提交
5 6 7
    - if [ -n "$COVERALLS" ]; then
          pip install --user cpp-coveralls;
      fi;
E
Emilia Kasper 已提交
8

R
Rich Salz 已提交
9
addons:
A
Alessandro Ghedini 已提交
10 11
    apt:
        packages:
12
            - ccache
R
Rich Salz 已提交
13
            - clang-3.6
A
Alessandro Ghedini 已提交
14
            - gcc-5
E
Emilia Kasper 已提交
15 16
            - binutils-mingw-w64
            - gcc-mingw-w64
A
Alessandro Ghedini 已提交
17
        sources:
R
Rich Salz 已提交
18
            - llvm-toolchain-precise-3.6
A
Alessandro Ghedini 已提交
19
            - ubuntu-toolchain-r-test
R
Rich Salz 已提交
20

21
os:
R
Rich Salz 已提交
22 23
    - linux
    - osx
24 25

compiler:
R
Rich Salz 已提交
26 27
    - clang
    - gcc
28 29

env:
30
    - CONFIG_OPTS="" DESTDIR="_install"
R
Rich Salz 已提交
31
    - CONFIG_OPTS="--debug no-shared enable-crypto-mdebug enable-rc5 enable-md2"
32
    - CONFIG_OPTS="no-pic --strict-warnings" BUILDONLY="yes"
33
    - CONFIG_OPTS="no-engine no-shared --strict-warnings" BUILDONLY="yes"
34
    - CONFIG_OPTS="no-stdio --strict-warnings" BUILDONLY="yes"
R
Rich Salz 已提交
35 36

matrix:
A
Alessandro Ghedini 已提交
37
    include:
E
Emilia Kasper 已提交
38 39
        - os: linux
          compiler: gcc
R
Rich Salz 已提交
40
          env: CONFIG_OPTS="--debug --coverage no-asm enable-rc5 enable-md2 enable-ec_nistp_64_gcc_128 enable-ssl3 enable-ssl3-method enable-nextprotoneg enable-weak-ssl-ciphers" COVERALLS="yes"
41 42
        - os: linux
          compiler: clang-3.6
43
          env: CONFIG_OPTS="enable-msan"
44
        - os: linux
R
Rich Salz 已提交
45
          compiler: clang-3.6
R
Rich Salz 已提交
46
          env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method enable-nextprotoneg -fno-sanitize=alignment"
R
Rich Salz 已提交
47 48
        - os: linux
          compiler: clang-3.6
R
Rich Salz 已提交
49
          env: CONFIG_OPTS="no-asm enable-asan enable-rc5 enable-md2"
50 51
        - os: linux
          compiler: gcc-5
R
Rich Salz 已提交
52
          env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 -DPEDANTIC"
53 54
        - os: linux
          compiler: i686-w64-mingw32-gcc
55
          env: CONFIG_OPTS="no-stdio" BUILDONLY="yes"
E
Emilia Kasper 已提交
56
        - os: linux
A
Andy Polyakov 已提交
57
          compiler: i686-w64-mingw32-gcc
E
Emilia Kasper 已提交
58
          env: CONFIG_OPTS="no-pic"
59 60
        - os: linux
          compiler: x86_64-w64-mingw32-gcc
A
Andy Polyakov 已提交
61
          env: CONFIG_OPTS="no-pic"
R
Rich Salz 已提交
62
    exclude:
E
Emilia Kasper 已提交
63 64
        - os: linux
          compiler: clang
65 66
        - os: osx
          compiler: gcc
R
Rich Salz 已提交
67 68

before_script:
69 70 71 72 73 74 75 76 77 78 79
    - if [ -n "$DESTDIR" ]; then
          sh .travis-create-release.sh $TRAVIS_OS_NAME;
          tar -xvzf _srcdist.tar.gz;
          mkdir _build;
          cd _build;
          srcdir=../_srcdist;
          top=..;
      else
          srcdir=.;
          top=.;
      fi
R
Rich Salz 已提交
80 81
    - if [ "$CC" == i686-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
82
          $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
R
Rich Salz 已提交
83 84
      elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
85
          $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
R
Rich Salz 已提交
86
      else
87
          if which ccache >/dev/null && [ "$CC" != clang-3.6 ]; then
88
              CC="ccache $CC";
89
          fi;
90
          $srcdir/config -v $CONFIG_OPTS;
R
Rich Salz 已提交
91
      fi
92
    - cd $top
93 94

script:
95 96 97 98 99
    - if [ -z "$BUILDONLY" ]; then
          make="make -s";
      else
          make="make";
      fi
100 101 102 103 104 105
    - if [ -n "$DESTDIR" ]; then
          cd _build;
          top=..;
      else
          top=.;
      fi
106 107
    - $make update
    - $make
E
Emilia Kasper 已提交
108
    - if [ -z "$BUILDONLY" ]; then
E
Emilia Kasper 已提交
109
          if [ -n "$CROSS_COMPILE" ]; then
110
              sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install wine;
E
Emilia Kasper 已提交
111 112
              export EXE_SHELL="wine" WINEPREFIX=`pwd`;
          fi;
E
Emilia Kasper 已提交
113
          HARNESS_VERBOSE=yes make test;
114
      else
115
          $make build_tests;
116
      fi
117 118
    - if [ -n "$DESTDIR" ]; then
          mkdir "../$DESTDIR";
119
          $make install install_docs DESTDIR="../$DESTDIR";
120
      fi
121
    - cd $top
122

E
Emilia Kasper 已提交
123 124
after_success:
    - if [ -n "$COVERALLS" ]; then
125
          coveralls -b . --gcov-options '\-lp';
E
Emilia Kasper 已提交
126 127
      fi;

128
notifications:
R
Rich Salz 已提交
129
    email:
R
Richard Levitte 已提交
130
        secure: "xeGNgWO7aoaDgRvcZubposqMsj36aU8c6F0oHfw+rUqltCQ14IgYCUwzocmR2O+Pa7B3Cx5VjMfBFHbQaajZsfod8vu7g+aGq/zkjwbhsr/SR4dljJjFJXLGZjIalm9KgP6KInmVDuINfCqP+MHIY5lZkNI7DMcyHDhVc5nSKvCXV7xTDNgmstvh8rB/z51WfHDqGqfBtiuK5FDNxmvYK8OFJ5W94Lu9LDlizcxwK3GAj7arOui7Z5w8bQ6p4seUE3IvJL1Zbj0pZHxvNb6Zeb2Pn8QF1qLlN8YmBktD4aiw0ce4wYRiL87uLgcOxZY7SVXtv2XYFIYWapU/FKjCqa6vK93V/H9eZWEIYNMKnN3wXm2beqVdnKek3OeGJ8v0y7MbSfuLfRtBqbTSNYnpU1Zuo4MQAvHvEPuwCAYkYQajOSRplMH5sULFKptuVqNtOMfjL8jHb8AEoL1acYIk43ydxeYrzzas4fqgCDJ52573/u0RNdF1lkQBLkuM365OB8VRqtpnoxcdEIY/qBc/8TzZ24fxyrs5qdHFcxGSgpN2EP6cJMqpvkemnCNSdhxUqfzm22N7a3O8+4LFSBGOnHto/PwdsvF/01yGYL0LoZTnoO1i6x7AMJPBh+eyDU0ZjGhj/msjmqeb9C8vRqQ+1WjHrIS1iqCD0Czib8tUPD4="