tag:help.appveyor.com,2012-11-13:/discussions/questions/1076-separate-configuration-for-pull-requestsAppVeyor: Discussion 2018-10-19T08:17:04Ztag:help.appveyor.com,2012-11-13:Comment/362596852015-03-11T23:55:29Z2015-03-11T23:55:29ZSeparate configuration for pull requests?<div><p>Right now you can't declaratively define such configuration
though there is a variable with PR number that can be used in build
script conditions. Well, sounds like a good feature request, i.e.
being able to define config for branch AND pull requests targeting
that branch.</p>
<p>-Feodor</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/362596852016-09-13T12:45:50Z2016-09-13T12:45:51ZSeparate configuration for pull requests?<div><p>Hello Feodor,</p>
<p>Is this still a missing feature?</p>
<p>Thanks,<br>
Stephen</p></div>Stephentag:help.appveyor.com,2012-11-13:Comment/362596852016-09-13T13:47:18Z2016-09-13T13:47:18ZSeparate configuration for pull requests?<div><p>Hi Stephen,</p>
<p>Could you elaborate more on your use case please?</p>
<p>-Feodor Fitsner, AppVeyor</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/362596852016-09-13T14:08:21Z2016-09-13T14:08:22ZSeparate configuration for pull requests?<div><p>Sure, I'm working on <a href="https://github.com/GoogleCloudPlatform/google-cloud-node">https://github.com/GoogleCloudPlatform/google-cloud-node</a>.
We have two types of tests: unit tests & system integration
tests. Unit tests all use a mocked backend, while the integration
tests hit the upstream API endpoints. We don't want to run the
integration tests on every PR, rather only when a merge to master
is made.</p>
<p>Related issue: <a href="https://github.com/GoogleCloudPlatform/google-cloud-node/issues/1591">
https://github.com/GoogleCloudPlatform/google-cloud-node/issues/1591</a></p></div>Stephentag:help.appveyor.com,2012-11-13:Comment/362596852016-09-13T19:59:43Z2016-09-13T19:59:43ZSeparate configuration for pull requests?<div><p>Right, you can check if
<code>APPVEYOR_PULL_REQUEST_NUMBER</code> environment variable is
not defined, kind of:</p>
<pre>
<code>IF "%APPVEYOR_PULL_REQUEST_NUMBER%"="" run_integration_tests.cmd</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/362596852016-09-13T20:13:41Z2016-09-13T20:13:45ZSeparate configuration for pull requests?<div><p>Thanks, Feodor!</p></div>Stephen