From fecb268ef6873d745d3f48c01f5ad716085a618b Mon Sep 17 00:00:00 2001 From: Scott Date: Sun, 9 Dec 2018 21:38:35 +0000 Subject: [PATCH] Adding MinGW Support & Toolchains --- .travis.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 16b5e6cca..5ef480455 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,10 @@ matrix: include: - os: linux dist: xenial + env: BUILD_MINGW=false + - os: linux + dist: xenial + env: BUILD_MINGW=true before_install: - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq ; fi @@ -14,4 +18,14 @@ before_install: language: c script: -- ./configure --disable-gtk --disable-gst --launch --launch-jobs=0 + +# Linux Build Support +- if [[ "$TRAVIS_OS_NAME" == "linux" && "$BUILD_MINGW" == false ]]; then ./configure --disable-gtk --disable-gst --launch --launch-jobs=0 fi + +# MinGW Build Support +if [[ "$BUILD_MINGW" == true && ! -d "$HOME/toolchains" ]]; then ls -la fi +if [[ "$BUILD_MINGW" == true && ! -d "$HOME/toolchains" ]]; then ./scripts/mingw-w64-build x86_64 && ./scripts/mingw-w64-build x86_64.clean fi + +cache: + directories: + - $HOME/toolchains -- 2.40.0