GH398: Add mingw cross-compile, etc.
For all release branches. It adds travis build support. If you don't have a config file it uses the default (because we enabled travis for the project), which uses ruby/rake/rakefiles, and you get confusing "build still failing" messages. Reviewed-by: Andy Polyakov <appro@openssl.org>
This commit is contained in:
parent
2aa707c6ac
commit
db9defdfe3
32
.travis.yml
32
.travis.yml
@ -1,5 +1,10 @@
|
|||||||
language: c
|
language: c
|
||||||
|
|
||||||
|
addons:
|
||||||
|
apt_packages:
|
||||||
|
- binutils-mingw-w64
|
||||||
|
- gcc-mingw-w64
|
||||||
|
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
- osx
|
- osx
|
||||||
@ -7,18 +12,39 @@ os:
|
|||||||
compiler:
|
compiler:
|
||||||
- clang
|
- clang
|
||||||
- gcc
|
- gcc
|
||||||
|
- i686-w64-mingw32-gcc
|
||||||
|
- x86_64-w64-mingw32-gcc
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- CONFIG_OPTS=""
|
- CONFIG_OPTS=""
|
||||||
- CONFIG_OPTS="--debug"
|
|
||||||
- CONFIG_OPTS="shared"
|
- CONFIG_OPTS="shared"
|
||||||
|
- CONFIG_OPTS="--debug --strict-warnings"
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./config $CONFIG_OPTS && make && make test
|
- make
|
||||||
|
- if [ -z "$CROSS_COMPILE" ]; then make test; fi
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
recipient:
|
recipient:
|
||||||
- openssl-dev@openssl.org
|
- openssl-commits@openssl.org
|
||||||
email:
|
email:
|
||||||
on_success: change
|
on_success: change
|
||||||
on_failure: always
|
on_failure: always
|
||||||
|
Loading…
Reference in New Issue
Block a user