Influence order of test runs/builds?

Jan Pio's Avatar

Jan Pio

14 Feb, 2018 03:41 PM

Right now I have this in my appveyor.yml:

image:
- Visual Studio 2015
- Visual Studio 2017
environment:
  matrix:
    - nodejs_version: "4"
    - nodejs_version: "6"

This currently means I get this execution order of tests:
VS15 node4, VS15 node6, VS17 node4, VS17 node6

Is there a way to influence this order somehow to e.g.
VS17 node6, VS15 node6, VS17 node4, VS15 node4
?

Jan

  1. 1 Posted by Ilya Finkelshte... on 14 Feb, 2018 07:49 PM

    Ilya Finkelshteyn's Avatar

    You can use APPVEYOR_BUILD_WORKER_IMAGE environment variable to tweak it. See example below. image: section should be removed.

    environment:
      matrix:
        - nodejs_version: "6"
          APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
    
        - nodejs_version: "6"
          APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
    
        - nodejs_version: "4"
          APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
    
        - nodejs_version: "4"
          APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
    
  2. 2 Posted by Jan Pio on 14 Feb, 2018 09:33 PM

    Jan Pio's Avatar

    Ahh, I didn't remove image: in my testing and got a multiple of the tests I wanted to run - now I know why. Thanks!

  3. 3 Posted by Jan Pio on 15 Feb, 2018 04:03 PM

    Jan Pio's Avatar

    Tested and works. Thank you!

  4. Jan Pio closed this discussion on 15 Feb, 2018 04:03 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac