tag:help.appveyor.com,2012-11-13:/discussions/problems/6086-running-powershell-script-freezesAppVeyor: Discussion 2018-10-19T08:18:12Ztag:help.appveyor.com,2012-11-13:Comment/419454002017-02-13T17:29:47Z2017-02-13T17:29:47ZRunning powershell script freezes<div><p>Hi Adam,</p>
<p>Can you drop the entire appveyor.yml for that project
please?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/419454002017-02-13T18:17:16Z2017-02-13T18:17:17ZRunning powershell script freezes<div><p>I was editing it in the settings for faster iteration so here is
the copy/paste from the export page:</p>
<pre>
<code>version: 0.1 b{build}
image: Previous Visual Studio 2013
configuration: Release
clone_depth: 1
clone_folder: c:\projects\tec
init:
- ps: >-
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
git config --global core.autocrlf input
install:
- cmd:
cache: c:/vcpkg/
before_build:
- cmd: "cd c:\\\n IF NOT EXIST c:\\vcpkg\\ ( git clone https://github.com/Microsoft/vcpkg ) ELSE ( echo VCPKG is cached )\n\n cd vcpkg\n\n powershell -exec bypass -File scripts\\bootstrap.ps1\n \nset cached=FALSE\n IF NOT EXIST \"c:\\vcpkg\\\" (git clone https://github.com/Microsoft/vcpkg) ELSE (SET cached=TRUE)\n\n cd vcpkg\n\n IF %cached%==TRUE ( echo VCPKG is cached ) ELSE ( echo VCPKG is not cached)\npowershell \"'Hello'\"\n powershell.exe -exec bypass -File scripts\\bootstrap.ps1\n\n .\\vcpkg integrate install\n\n .\\vcpkg install asio bullet3 glew glfw3 glm lua openal-soft protobuf zlib\n\n cd c:\\projects\\tec\n \n git submodule update --init\n\n mkdir build\n\n cd build\n\n cmake -G \"Visual Studio 14 2015\" -DBUILD_TESTS_TEC=True -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake .."
build:
project: c:\projects\tec\build\trillek.sln
verbosity: minimal
artifacts:
- path: build\client\Release\trillek-client.exe
name: trillek-client-win32
notifications:
- provider: Slack
incoming_webhook: https://hooks.slack.com/services/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
channel: builds
template: >-
<{{buildUrl}}|Build {{projectName}} {{buildVersion}} {{status}}>
Commit <{{commitUrl}}|{{commitId}}> by {{commitAuthor}} on {{commitDate}}:
_{{commitMessage}}_
on_build_success: true
on_build_failure: true
on_build_status_changed: true</code>
</pre></div>Adam Martintag:help.appveyor.com,2012-11-13:Comment/419454002017-02-14T04:23:05Z2017-02-14T04:23:05ZRunning powershell script freezes<div><p>Is there any reason you use <code>Previous Visual Studio
2013</code> image?</p>
<pre>
<code>image: Previous Visual Studio 2013</code>
</pre>
<p>If you switch to default image with Visual Studio 2015 then it
has NuGet 3.5 in <code>PATH</code> which, I guess, would make vcpkg
installation package happy.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/419454002017-02-14T13:58:03Z2017-02-14T13:58:04ZRunning powershell script freezes<div><p>Oops didn't see that I forgot to change it back.</p>
<p>The issue appeared for both normal and Previous images.</p></div>Adam Martintag:help.appveyor.com,2012-11-13:Comment/419454002017-02-14T18:40:16Z2017-02-14T18:40:16ZRunning powershell script freezes<div><p>OK, I've made bootstrap work with the following script:</p>
<pre>
<code>git clone https://github.com/Microsoft/vcpkg
md vcpkg\downloads\nuget-3.5.0
appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -FileName %appveyor_build_folder%\vcpkg\downloads\nuget-3.5.0\nuget.exe
powershell -exec bypass -File vcpkg\scripts\bootstrap.ps1</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/419454002017-02-15T02:39:13Z2017-02-15T02:39:16ZRunning powershell script freezes<div><p>Thanks for the suggestion I will try it out. It seems when they
started adding support for Visual Studio 2017 it makes checks for
nuget the older bootstrap (from when I did the last successful
build) didn't call that script.</p></div>Adam Martin