matrix and allow_failures

William Fulton's Avatar

William Fulton

12 Jun, 2020 06:57 PM

If I have this yaml file:

platform:
- x86
- x64

environment:
  global:
    MAKEJOBS: 2

  matrix:
  - LANG: csharp
    VSVER: 12
  - LANG: python
    OSVARIANT: cygwin

I can't figure out how to add the 2nd configuration (LANG==python and OSVARIANT==cygwin) build to 'allow_failures' . What's the syntax please?

  1. Support Staff 1 Posted by Feodor Fitsner on 13 Jun, 2020 12:34 AM

    Feodor Fitsner's Avatar

    Try this:

    platform: 
    - x86 
    - x64
    
    environment: 
      global: 
        MAKEJOBS: 2
    
      matrix: 
      - LANG: csharp 
        VSVER: 12 
      - LANG: python 
        OSVARIANT: cygwin
    
    matrix:
      allow_failures:
        - LANG: python
          OSVARIANT: cygwin
    

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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