1*c43cad87SWarner Losh#!/bin/bash 2*c43cad87SWarner Losh 3*c43cad87SWarner Loshset -e 4*c43cad87SWarner Losh 5*c43cad87SWarner Loshif [[ "$TRAVIS_OS_NAME" != "windows" ]]; then 6*c43cad87SWarner Losh echo "Incorrect \$TRAVIS_OS_NAME: expected windows, got $TRAVIS_OS_NAME" 7*c43cad87SWarner Losh exit 1 8*c43cad87SWarner Loshfi 9*c43cad87SWarner Losh 10*c43cad87SWarner Losh$build_env autoconf 11*c43cad87SWarner Losh$build_env ./configure $CONFIGURE_FLAGS 12*c43cad87SWarner Losh# mingw32-make simply means "make", unrelated to mingw32 vs mingw64. 13*c43cad87SWarner Losh# Simply disregard the prefix and treat is as "make". 14*c43cad87SWarner Losh$build_env mingw32-make -j3 15*c43cad87SWarner Losh# At the moment, it's impossible to make tests in parallel, 16*c43cad87SWarner Losh# seemingly due to concurrent writes to '.pdb' file. I don't know why 17*c43cad87SWarner Losh# that happens, because we explicitly supply '/Fs' to the compiler. 18*c43cad87SWarner Losh# Until we figure out how to fix it, we should build tests sequentially 19*c43cad87SWarner Losh# on Windows. 20*c43cad87SWarner Losh$build_env mingw32-make tests 21