.travis.yml 2.1 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 8
            - gcc-5
        sources:
9
            - llvm-toolchain-precise-3.6
A
Alessandro Ghedini 已提交
10
            - ubuntu-toolchain-r-test
R
Rich Salz 已提交
11

12
os:
R
Rich Salz 已提交
13 14
    - linux
    - osx
15 16

compiler:
R
Rich Salz 已提交
17
    - clang
18
    - clang-3.6
R
Rich Salz 已提交
19
    - gcc
A
Alessandro Ghedini 已提交
20
    - gcc-5
21 22

env:
R
Rich Salz 已提交
23 24
    - CONFIG_OPTS=""
    - CONFIG_OPTS="shared"
25
    - CONFIG_OPTS="no-pic"
R
Rich Salz 已提交
26
    - CONFIG_OPTS="--debug --strict-warnings enable-crypto-mdebug enable-rc5 enable-md2"
E
Emilia Kasper 已提交
27 28 29
    - 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 已提交
30 31

matrix:
A
Alessandro Ghedini 已提交
32
    include:
33 34 35 36 37
        - os: linux
          compiler: clang-3.6
          env: CONFIG_OPTS="-fsanitize=address"
        - os: linux
          compiler: clang-3.6
E
Emilia Kasper 已提交
38
          env: CONFIG_OPTS="no-asm --strict-warnings -fno-sanitize-recover -fsanitize=address -fsanitize=undefined enable-rc5 enable-md2"
39 40 41
        - os: linux
          compiler: gcc-5
          env: CONFIG_OPTS="-fsanitize=address"
A
Alessandro Ghedini 已提交
42 43
        - os: linux
          compiler: gcc-5
E
Emilia Kasper 已提交
44
          env: CONFIG_OPTS="no-asm --strict-warnings -fno-sanitize-recover -fsanitize=address -fsanitize=undefined enable-rc5 enable-md2"
45
        - os: linux
E
Emilia Kasper 已提交
46 47
          compiler: clang
          env: CONFIG_OPTS="no-engine" BUILDONLY="yes"
R
Rich Salz 已提交
48
    exclude:
49 50
        - os: osx
          compiler: clang-3.6
51 52
        - os: osx
          compiler: gcc
A
Alessandro Ghedini 已提交
53 54
        - os: osx
          compiler: gcc-5
R
Rich Salz 已提交
55 56

before_script:
57
    - sh .travis-create-release.sh $TRAVIS_OS_NAME
58 59
    - tar -xvzf _srcdist.tar.gz
    - cd _srcdist
R
Rich Salz 已提交
60 61
    - if [ "$CC" == i686-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
62
          ./Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
R
Rich Salz 已提交
63 64
      elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
65
          ./Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
R
Rich Salz 已提交
66 67 68
      else
          ./config $CONFIG_OPTS;
      fi
69
    - cd ..
70 71

script:
72
    - cd _srcdist
R
Rich Salz 已提交
73
    - make
E
Emilia Kasper 已提交
74 75
    - if [ -z "$BUILDONLY" ]; then
          HARNESS_VERBOSE=yes make test;
76
      fi
77
    - cd ..
78 79

notifications:
R
Rich Salz 已提交
80
    email:
A
Alessandro Ghedini 已提交
81
        - openssl-commits@openssl.org
82