Skip to content

Instantly share code, notes, and snippets.

@adunstan adunstan/appveyor.yml
Last active Jun 3, 2018

What would you like to do?
Setup for appveyor builds
# appveyor.yml
- cinst winflexbison
- '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64'
- net user testuser Blurfl9426! /add
- rename c:\ProgramData\chocolatey\bin\win_flex.exe flex.exe
- rename c:\ProgramData\chocolatey\bin\win_bison.exe bison.exe
- curl -S -O
- perl
project: pgsql.sln
- Release
- echo redirect escape ^>
- echo echo script running > test_script.bat
- echo cd %cd%\src\tools\msvc >> test_script.bat
- echo SET PATH=%PATH% >> test_script.bat
- perl -e "print q{.\vcregress check > regression.out}, qq{\n};" >> test_script.bat
- type test_script.bat
- psexec -u testuser -p Blurfl9426! c:\projects\pgdevel\test_script.bat
- type src\tools\msvc\regression.out
# first part of postgres, just doesn't run msbuild
use strict;
chdir("../../..") if (-d "../msvc" && -d "../../../src");
use lib "src/tools/msvc";
use Cwd;
use Mkvcbuild;
# is for specifying the build environment settings
# it should contain lines like:
# $ENV{PATH} = "c:/path/to/bison/bin;$ENV{PATH}";
if (-e "src/tools/msvc/")
do "src/tools/msvc/";
elsif (-e "./")
do "./";
# set up the project
our $config;
do "";
do "" if (-f "src/tools/msvc/");
# print "PATH: $_\n" foreach (split(';',$ENV{PATH}));

This comment has been minimized.

Copy link

commented Nov 3, 2017

forgive my ignorance.. why are you using testuser to run the regression ?


This comment has been minimized.

Copy link
Owner Author

commented Jun 3, 2018

Dave, sorry, didn't see your comment before. The issue is that if it runs as a user with administrative privileges the tablespace check fails. Hence use of a new user. Thomas Munro gets around this by disabling that test. I'm going to look at allowing disabling of tests without patching the postgres code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.