cobnitional build question

John Deemar's Avatar

John Deemar

13 Apr, 2020 10:44 PM

So I have yml, I want build: section to conditionalize on debug versus release build. Basically - deploy on release - not debug build.

my syntax is way wrong:
build:
  project: src/%slnname%.sln
  - Release
    publish_nuget: true
  - Debug
    publish_nuget: false
  verbosity: normal

Help a newbie out?

  1. 1 Posted by John Deemar on 13 Apr, 2020 10:53 PM

    John Deemar's Avatar

    configuration:
    - Debug
    - Release

  2. Support Staff 2 Posted by Feodor Fitsner on 14 Apr, 2020 01:57 AM

    Feodor Fitsner's Avatar

    Hi John,

    This is what you need: https://www.appveyor.com/docs/build-configuration/#specializing-mat...

    For your specific case you can try the following:

    configuration:
      - Debug
      - Release
    
    build:
      project: src\%slnname%.sln
      publish_nuget: false
      verbosity: normal
    
    for:
    -
      matrix:
        only:
          - configuration: Release
    
      build:
        publish_nuget: true
    
  3. Feodor Fitsner closed this discussion on 14 Jun, 2020 09:02 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

Recent Discussions

27 Jan, 2023 08:06 PM
27 Jan, 2023 08:05 PM
25 Jan, 2023 03:23 PM
25 Jan, 2023 03:22 PM
23 Jan, 2023 03:29 PM