Travis: fix mingw build command and add wrapper

The previous command was only working because Travis already exports CC and CXX. This works even if this is not the case.
This commit is contained in:
Christian Beer 2017-03-23 09:06:55 +01:00
parent 348c9199cf
commit cfa12a7e17
1 changed files with 3 additions and 1 deletions

View File

@ -67,6 +67,7 @@ env:
- BOINC_TYPE=apps
- BOINC_TYPE=manager
- BOINC_TYPE=libs-mingw
- BOINC_TYPE=apps-mingw
#- BOINC_TYPE=coverity
matrix:
@ -81,4 +82,5 @@ script:
- if [[ "${BOINC_TYPE}" == "client" ]]; then ( ./configure --disable-server --disable-manager && make ) fi
- if [[ "${BOINC_TYPE}" == "apps" ]]; then ( ./configure --enable-apps --disable-server --disable-client --disable-manager && make ) fi
- if [[ "${BOINC_TYPE}" == "manager" ]]; then ( ./build/getWxWidgets.sh && ./configure --disable-server --disable-client --with-wxdir=./build/wxWidgets-3.0.2/buildgtk && make ) fi
- if [[ "${BOINC_TYPE}" == "libs-mingw" ]]; then ( cd lib && CC=/usr/bin/x86_64-w64-mingw32-gcc; CXX=/usr/bin/x86_64-w64-mingw32-g++; make -f Makefile.mingw ) fi
- if [[ "${BOINC_TYPE}" == "libs-mingw" ]]; then ( cd lib && MINGW=x86_64-w64-mingw32 make -f Makefile.mingw ) fi
- if [[ "${BOINC_TYPE}" == "apps-mingw" ]]; then ( cd lib && MINGW=x86_64-w64-mingw32 make -f Makefile.mingw wrapper ) fi