|
4 | 4 | language:c
|
5 | 5 |
|
6 | 6 | before_install:
|
| 7 | + -| |
| 8 | + [[ ! -f C:/tools/msys64/msys2_shell.cmd ]] && rm -rf C:/tools/msys64 |
| 9 | + choco uninstall -y mingw |
| 10 | + choco upgrade --no-progress -y msys2 |
| 11 | + export msys2='cmd //C RefreshEnv.cmd ' |
| 12 | + export msys2+='& set MSYS=winsymlinks:nativestrict ' |
| 13 | + export msys2+='& C:\\tools\\msys64\\msys2_shell.cmd -defterm -no-start' |
| 14 | + export mingw64="$msys2 -mingw64 -full-path -here -c "\"\$@"\" --" |
| 15 | + export msys2+=" -msys2 -c "\"\$@"\" --" |
| 16 | + $msys2 pacman --sync --noconfirm --needed mingw-w64-x86_64-toolchain bison flex |
| 17 | + ## Install more MSYS2 packages from https://packages.msys2.org/base here |
| 18 | + taskkill //IM gpg-agent.exe //F # https://travis-ci.community/t/4967 |
| 19 | + export PATH=/C/tools/msys64/mingw64/bin:$PATH |
| 20 | + export MAKE=mingw32-make # so that Autotools can find it |
7 | 21 | -git clone -b REL_14_STABLE --single-branch --depth 1 https://github.com/postgres/postgres.git
|
8 | 22 | -cd postgres/src/tools/msvc
|
9 | 23 | -cp config_default.pl config.pl
|
|