diff options
author | Rich Salz <rsalz@akamai.com> | 2015-09-21 19:54:36 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-09-22 13:47:56 -0400 |
commit | ba6d3a62998d6215e7a6e1ee2a93a5fdd7bf7f29 (patch) | |
tree | 2d7f8df28fbf6a7b85d7b4f390127660dd9cb51c | |
parent | 5e7d583bab249dbc4ae484768e05aa11ea14f5bc (diff) | |
download | openssl-new-ba6d3a62998d6215e7a6e1ee2a93a5fdd7bf7f29.tar.gz |
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>
(cherry picked from commit db9defdfe306e1adf0af7188b187d535eb0268da)
-rw-r--r-- | .travis.yml | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..cb28758e89 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,50 @@ +language: c + +addons: + apt_packages: + - binutils-mingw-w64 + - gcc-mingw-w64 + +os: + - linux + - osx + +compiler: + - clang + - gcc + - i686-w64-mingw32-gcc + - x86_64-w64-mingw32-gcc + +env: + - CONFIG_OPTS="" + - 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: + - make + - if [ -z "$CROSS_COMPILE" ]; then make test; fi + +notifications: + recipient: + - openssl-commits@openssl.org + email: + on_success: change + on_failure: always |