tag:help.appveyor.com,2012-11-13:/discussions/problems/18485-running-some-tests-only-in-nightly-buildsAppVeyor: Discussion 2019-02-09T21:00:20Ztag:help.appveyor.com,2012-11-13:Comment/466391002018-12-10T09:59:10Z2018-12-10T09:59:10ZRunning some tests only in nightly builds<div><p>There are few options you can use. First, leverage <code>APPVEYOR_SCHEDULED_BUILD</code> and <code>APPVEYOR</code> <a href="https://www.appveyor.com/docs/environment-variables/">environment variables</a>. As an option you can check if both variables value is <code>True</code>, <a href="https://stackoverflow.com/a/29030863/6733637">ignore</a> them. Here I assume that AppVeyor run those tests automatically. If you run them as a <code>test_script</code>, you can condition your script to use those variables (or just <code>APPVEYOR_SCHEDULED_BUILD</code> as you probably do not run script on local machine).</p>
<p>Also you can create separate project targeted the same repository specifically for nightly builds and configure it separately. Disadvantage of this approach is separate build history. Also another project for the same repository will have URL slug with random ending. This you can change with API call (<a href="https://gist.github.com/IlyaFinkelshteyn/8f195010434075074bfa4ee48e3fa347">script sample</a>).</p></div>Ilya Finkelshteyn