.travis.yml 4.5 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
            - g++-5
            - golang
E
Emilia Kasper 已提交
17 18
            - binutils-mingw-w64
            - gcc-mingw-w64
A
Alessandro Ghedini 已提交
19
        sources:
R
Rich Salz 已提交
20
            - llvm-toolchain-precise-3.6
A
Alessandro Ghedini 已提交
21
            - ubuntu-toolchain-r-test
R
Rich Salz 已提交
22

23
os:
R
Rich Salz 已提交
24 25
    - linux
    - osx
26 27

compiler:
R
Rich Salz 已提交
28 29
    - clang
    - gcc
30 31

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

matrix:
A
Alessandro Ghedini 已提交
39
    include:
R
Richard Levitte 已提交
40 41 42
        - os: linux
          compiler: clang-3.6
          env: CONFIG_OPTS="--strict-warnings no-deprecated" BUILDONLY="yes"
E
Emilia Kasper 已提交
43
        - os: linux
E
Emilia Kasper 已提交
44 45
          compiler: gcc-5
          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 enable-external-tests" COVERALLS="yes" BORINGSSL_TESTS="yes" CXX="g++-5"
46 47
        - os: linux
          compiler: clang-3.6
48
          env: CONFIG_OPTS="enable-msan"
49
        - os: linux
R
Rich Salz 已提交
50
          compiler: clang-3.6
R
Rich Salz 已提交
51
          env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method enable-nextprotoneg -fno-sanitize=alignment"
R
Rich Salz 已提交
52 53
        - os: linux
          compiler: clang-3.6
R
Rich Salz 已提交
54
          env: CONFIG_OPTS="no-asm enable-asan enable-rc5 enable-md2"
55 56
        - os: linux
          compiler: gcc-5
R
Rich Salz 已提交
57
          env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 -DPEDANTIC"
58 59
        - os: linux
          compiler: i686-w64-mingw32-gcc
60
          env: CONFIG_OPTS="no-stdio" BUILDONLY="yes"
E
Emilia Kasper 已提交
61
        - os: linux
A
Andy Polyakov 已提交
62
          compiler: i686-w64-mingw32-gcc
E
Emilia Kasper 已提交
63
          env: CONFIG_OPTS="no-pic"
64 65
        - os: linux
          compiler: x86_64-w64-mingw32-gcc
A
Andy Polyakov 已提交
66
          env: CONFIG_OPTS="no-pic"
R
Rich Salz 已提交
67
    exclude:
E
Emilia Kasper 已提交
68 69
        - os: linux
          compiler: clang
70 71
        - os: osx
          compiler: gcc
R
Rich Salz 已提交
72 73

before_script:
74 75 76 77 78 79 80 81 82 83 84
    - 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 已提交
85 86
    - if [ "$CC" == i686-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
87
          $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
R
Rich Salz 已提交
88 89
      elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
90
          $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
R
Rich Salz 已提交
91
      else
92
          if which ccache >/dev/null && [ "$CC" != clang-3.6 ]; then
93
              CC="ccache $CC";
94
          fi;
95
          $srcdir/config -v $CONFIG_OPTS;
R
Rich Salz 已提交
96
      fi
97
    - cd $top
98 99

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

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

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