Re: Cirrus CI (Windows help wanted) - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Cirrus CI (Windows help wanted)
Date
Msg-id 7d098026-4579-53e8-8ed0-238fed2c0e96@dunslane.net
Whole thread Raw
In response to Re: Cirrus CI (Windows help wanted)  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On 1/6/21 12:36 AM, Andrew Dunstan wrote:
> On 1/5/21 11:19 PM, Thomas Munro wrote:
>> Thanks!  I hacked on this a bit more and got as far as:
>>
>> C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build>call
>> perl buildsetup.pl
>> Unable to determine Visual Studio version: The nmake version could not
>> be determined. at src/tools/msvc/Mkvcbuild.pm line 92.
>>
>> That's from https://cirrus-ci.com/task/5842523031601152.  I guess PATH
>> is wrong or nmake it not present, but it's so painful to do a test
>> cycle that I gave up for today...
>
> Hmm, weird. I'll play some more tomorrow and see what I can find.


I have it building and testing ok, but it's horribly fragile. I doubt
this is acceptable for the cfbot, you'll get far to many spurious failures.


There are some build warnings we don't usually see. I haven't delved
into that.


See <https://cirrus-ci.com/task/4602736530423808>


The yml file is:


    task:
      name: Windows
      windows_container:
        image: cirrusci/windowsservercore:cmake
      install_script:
        - choco feature disable --name=showDownloadProgress
        - choco install -y winflexbison diffutils
        - rename c:\ProgramData\chocolatey\bin\win_flex.exe flex.exe
        - rename c:\ProgramData\chocolatey\bin\win_bison.exe bison.exe
        - choco install -y strawberryperl
        - choco install --force -y visualstudio2019-workload-vctools --package-parameters "--includeOptional"
        - choco list --localonly
      build_script:
        - cd "c:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Auxiliary/Build"
        - vcvarsall x64
        - echo on
        - cd C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build
        - set PATH=C:\strawberry\perl\bin;%PATH%
        - set
        - perl src/tools/msvc/mkvcbuild.pl
        - msbuild pgsql.sln
      test_script:
        - set PATH=C:\strawberry\perl\bin;%PATH%
        - set
        - perl src/tools/msvc/vcregress.pl check


cheers


andrew


--
Andrew Dunstan
EDB: https://www.enterprisedb.com




pgsql-hackers by date:

Previous
From: Robert Eckhardt
Date:
Subject: Re: Zedstore - compressed in-core columnar storage
Next
From: Merlin Moncure
Date:
Subject: Re: plpgsql variable assignment with union is broken