before_script.sh 684 B

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