.travis.yml 2.5 KB
Newer Older
1 2
language: c

R
Rich Salz 已提交
3
addons:
A
Alessandro Ghedini 已提交
4 5
    apt:
        packages:
6
            - clang-3.6
A
Alessandro Ghedini 已提交
7
            - gcc-5
E
Emilia Kasper 已提交
8 9 10
            - binutils-mingw-w64
            - gcc-mingw-w64
            - wine
A
Alessandro Ghedini 已提交
11
        sources:
12
            - llvm-toolchain-precise-3.6
A
Alessandro Ghedini 已提交
13
            - ubuntu-toolchain-r-test
R
Rich Salz 已提交
14

15
os:
R
Rich Salz 已提交
16 17
    - linux
    - osx
18 19

compiler:
R
Rich Salz 已提交
20
    - clang
21
    - clang-3.6
R
Rich Salz 已提交
22
    - gcc
A
Alessandro Ghedini 已提交
23
    - gcc-5
24 25

env:
R
Rich Salz 已提交
26 27
    - CONFIG_OPTS=""
    - CONFIG_OPTS="shared"
28
    - CONFIG_OPTS="no-pic"
R
Rich Salz 已提交
29
    - CONFIG_OPTS="--debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2"
E
Emilia Kasper 已提交
30 31 32
    - CONFIG_OPTS="--unified" BUILDONLY="yes"
    - CONFIG_OPTS="--unified shared" BUILDONLY="yes"
    - CONFIG_OPTS="--unified --debug --strict-warnings enable-rc5 enable-md2" 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"
48
        - os: linux
E
Emilia Kasper 已提交
49 50
          compiler: clang
          env: CONFIG_OPTS="no-engine" BUILDONLY="yes"
E
Emilia Kasper 已提交
51 52 53 54 55 56
        - 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 已提交
57
    exclude:
58 59
        - os: osx
          compiler: clang-3.6
60 61
        - os: osx
          compiler: gcc
A
Alessandro Ghedini 已提交
62 63
        - os: osx
          compiler: gcc-5
R
Rich Salz 已提交
64 65

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

script:
81
    - cd _srcdist
R
Rich Salz 已提交
82
    - make
E
Emilia Kasper 已提交
83
    - if [ -z "$BUILDONLY" ]; then
E
Emilia Kasper 已提交
84 85 86
          if [ -n "$CROSS_COMPILE" ]; then
              export EXE_SHELL="wine" WINEPREFIX=`pwd`;
          fi;
E
Emilia Kasper 已提交
87
          HARNESS_VERBOSE=yes make test;
88
      fi
89
    - cd ..
90 91

notifications:
R
Rich Salz 已提交
92
    email:
A
Alessandro Ghedini 已提交
93
        - openssl-commits@openssl.org
94