tag:help.appveyor.com,2012-11-13:/discussions/questions/14397-how-to-run-test_script-only-for-certain-membersjobs-of-build-matrixAppVeyor: Discussion 2018-10-19T08:18:36Ztag:help.appveyor.com,2012-11-13:Comment/442387392017-12-06T20:34:42Z2017-12-06T20:34:42ZHow to run test_script only for certain members/jobs of build matrix<div><p>I have a build matrix defined like this:</p>
<pre>
<code>environment:
matrix:
- PYTHON: "C:\\Python36"
- PYTHON: "C:\\Python27-x64"
DISTUTILS_USE_SDK: "1"
- PYTHON: "C:\\Python27"
- PYTHON: "C:\\Python34"
- PYTHON: "C:\\Python35"
- PYTHON: "C:\\Python34-x64"
DISTUTILS_USE_SDK: "1"
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36-x64"</code>
</pre>
<p>and later I run a simple test script:<br></p>
<pre>
<code>test_script:
- "build.cmd tox"</code>
</pre>
<p>What I'd like to do is only run the test_script for the 64 bit Python jobs. What's the best way to achieve that?</p></div>jonathan.underwoodtag:help.appveyor.com,2012-11-13:Comment/442387392017-12-06T21:00:06Z2017-12-06T21:00:06ZHow to run test_script only for certain members/jobs of build matrix<div><p>Something like this should work.</p>
<pre>
<code>test_script:
- ps: $env:is64bit = $env:PYTHON.Contains("-x64")
- IF %is64bit% == True build.cmd tox</code>
</pre></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/442387392017-12-06T23:09:28Z2017-12-06T23:09:28ZHow to run test_script only for certain members/jobs of build matrix<div><p>Yes, perfect - that works. Thank you very much!</p></div>jonathan.underwood