tag:help.appveyor.com,2012-11-13:/discussions/problems/103-change-directoryAppVeyor: Discussion 2018-08-25T01:38:45Ztag:help.appveyor.com,2012-11-13:Comment/317262312014-02-21T07:20:33Z2014-02-21T07:20:33ZChange directory<div><p>Try selecting "PS" when configuring script. The main build
session is PowerShell session, but "CMD" scripts run as a separate
batches that do not affect "parent" session.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/317262312014-02-22T05:54:39Z2014-02-22T05:54:39ZChange directory<div><p>Now I can't find my build logs (: I only see error message
'Specify a project or solution file. The directory does not contain
a project or solution file' but I have both 'build_script' and
'test_script' as custom steps.</p></div>ruslan_baratovtag:help.appveyor.com,2012-11-13:Comment/317262312014-02-22T06:01:55Z2014-02-22T06:01:55ZChange directory<div><p>Are you configuring project through <code>appveyor.yml</code>?
Can you post it?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/317262312014-02-22T06:11:35Z2014-02-22T06:11:35ZChange directory<div><p>Sure:</p>
<pre>
<code>build_script:
- echo %CD%
- mkdir foo
- echo %CD%
- ps: cd foo
- echo %CD%
- cmake -H. -B_builds
- cmake --build _builds
test_script:
- echo %CD%
- ps: cd _builds
- echo %CD%
- ctest -VV
- echo %CD%</code>
</pre>
<p>BTW the whole project:<br>
<a href=
"https://github.com/forexample/appveyor-test">https://github.com/forexample/appveyor-test</a></p></div>ruslan_baratovtag:help.appveyor.com,2012-11-13:Comment/317262312014-02-22T06:18:24Z2014-02-22T06:18:24ZChange directory<div><p>Thanks, I will take a look. Could you please post Appveyor
project URL?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/317262312014-02-22T06:31:00Z2014-02-22T06:31:00ZChange directory<div><p><a href=
"https://ci.appveyor.com/project/forexample-appveyor-test">https://ci.appveyor.com/project/forexample-appveyor-test</a></p></div>ruslan_baratovtag:help.appveyor.com,2012-11-13:Comment/317262312014-02-22T06:40:39Z2014-02-22T06:40:39ZChange directory<div><p>Hm, I thought it's AppVeyor 2.0 beta. <code>appveyor.yml</code>
is supported in beta only:
blog.appveyor.com/2014/02/19/appveyor-20-dedicated-build-vms-parallel-testing-nuget-deployment/</p>
<p>Could you please try running your project on beta?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/317262312014-02-22T06:59:24Z2014-02-22T06:59:24ZChange directory<div><p>Hah (: Didn't notice that, sorry.</p>
<p>'cd' with 'ps' works fine. Thank you!</p></div>ruslan_baratovtag:help.appveyor.com,2012-11-13:Comment/317262312014-02-22T07:25:23Z2014-02-22T07:25:23ZChange directory<div><p>Cool! Let me know if you find anything else.</p></div>Feodor Fitsner