xref: /src/contrib/jemalloc/scripts/windows/before_script.sh (revision c43cad87172039ccf38172129c79755ea79e6102)
148ec896eSWarner Losh#!/bin/bash
248ec896eSWarner Losh
348ec896eSWarner Loshset -e
448ec896eSWarner Losh
548ec896eSWarner Loshif [[ "$TRAVIS_OS_NAME" != "windows" ]]; then
648ec896eSWarner Losh    echo "Incorrect \$TRAVIS_OS_NAME: expected windows, got $TRAVIS_OS_NAME"
748ec896eSWarner Losh    exit 1
848ec896eSWarner Loshfi
948ec896eSWarner Losh
1048ec896eSWarner Losh$build_env autoconf
1148ec896eSWarner Losh$build_env ./configure $CONFIGURE_FLAGS
1248ec896eSWarner Losh# mingw32-make simply means "make", unrelated to mingw32 vs mingw64.
1348ec896eSWarner Losh# Simply disregard the prefix and treat is as "make".
1448ec896eSWarner Losh$build_env mingw32-make -j3
1548ec896eSWarner Losh# At the moment, it's impossible to make tests in parallel,
1648ec896eSWarner Losh# seemingly due to concurrent writes to '.pdb' file. I don't know why
1748ec896eSWarner Losh# that happens, because we explicitly supply '/Fs' to the compiler.
1848ec896eSWarner Losh# Until we figure out how to fix it, we should build tests sequentially
1948ec896eSWarner Losh# on Windows.
2048ec896eSWarner Losh$build_env mingw32-make tests
21