Add mingw bin directory to path and enable mingw build

This commit is contained in:
vitaut 2015-03-12 06:13:51 -07:00
parent 3b259b5120
commit 6dd532b456
2 changed files with 7 additions and 6 deletions

View File

@ -1,12 +1,12 @@
environment:
CTEST_OUTPUT_ON_FAILURE: 1
matrix:
- BUILD: msvc
CONFIG: Debug
- BUILD: msvc
CONFIG: Release
# - BUILD: mingw
# - BUILD: msvc
# CONFIG: Debug
# - BUILD: msvc
# CONFIG: Release
- BUILD: mingw
CONFIG: Debug
# - BUILD: mingw
# CONFIG: Release

View File

@ -12,7 +12,8 @@ if build == 'mingw':
build_command = ['mingw32-make', '-j4']
test_command = ['mingw32-make', 'test']
# Remove the path to Git bin directory from $PATH because it breaks MinGW config.
os.environ['PATH'] = os.environ['PATH'].replace(r'C:\Program Files (x86)\Git\bin', '')
path = os.environ['PATH'].replace(r'C:\Program Files (x86)\Git\bin', '')
os.environ['PATH'] = path + r';C:\MinGW\bin'
else:
build_command = ['msbuild', '/m:4', '/p:Config=' + config, 'FORMAT.sln']
test_command = ['msbuild', 'RUN_TESTS.vcxproj']