How to detect that my tests are running under APPVEYOR CI

bradphelan's Avatar

bradphelan

06 May, 2014 08:47 AM

Is there an environment variable running on the test agent I can check to tell me if I am running in the CI build machine. Some of my tests pop up interactive stuff. I would like to disable them easily by turning those bits of when running under CI.

Or do the environment variables set in the appveyor.yml appear also in the test environment?

  1. Support Staff 1 Posted by Feodor Fitsner on 06 May, 2014 04:24 PM

    Feodor Fitsner's Avatar

    Yes, it's either APPVEYOR or CI variables (http://www.appveyor.com/docs/environment-variables) or like you said you can set any variable in appveyor.yml:

    environment:
      this_is_ci: yes
    
  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:43 AM.

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