.travis.yml 1016 字节
Newer Older
1 2
language: c

R
Rich Salz 已提交
3 4 5 6 7
addons:
    apt_packages:
        - binutils-mingw-w64
        - gcc-mingw-w64

8
os:
R
Rich Salz 已提交
9 10
    - linux
    - osx
11 12

compiler:
R
Rich Salz 已提交
13 14 15 16
    - clang
    - gcc
    - i686-w64-mingw32-gcc
    - x86_64-w64-mingw32-gcc
17 18

env:
R
Rich Salz 已提交
19 20
    - CONFIG_OPTS=""
    - CONFIG_OPTS="shared"
21
    - CONFIG_OPTS="--d --strict-warnings"
R
Rich Salz 已提交
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39

matrix:
    exclude:
        - os: osx
          compiler: i686-w64-mingw32-gcc
        - os: osx
          compiler: x86_64-w64-mingw32-gcc

before_script:
    - if [ "$CC" == i686-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
          ./Configure mingw $CONFIG_OPTS;
      elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
          export CROSS_COMPILE=${CC%%gcc}; unset CC;
          ./Configure mingw64 $CONFIG_OPTS;
      else
          ./config $CONFIG_OPTS;
      fi
40 41

script:
R
Rich Salz 已提交
42 43
    - make
    - if [ -z "$CROSS_COMPILE" ]; then make test; fi
44 45

notifications:
R
Rich Salz 已提交
46 47 48 49 50
    recipient:
        - openssl-commits@openssl.org
    email:
        on_success: change
        on_failure: always