Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Skipping continuous integration #259

Open
FrederickEngelhardt opened this issue Jan 19, 2021 · 1 comment
Open

Question: Skipping continuous integration #259

FrederickEngelhardt opened this issue Jan 19, 2021 · 1 comment

Comments

@FrederickEngelhardt
Copy link

FrederickEngelhardt commented Jan 19, 2021

How does solidarity work for detecting that it is currently running on continuous integration?

Do I need to pass a flag? Example npx solidarity --ci

Also the question Should this rule be skipped on a Continuous Integration server? seems to output a "ci": true when selecting to skip the rule, is this intended or does "ci": true allow the rule to run on ci?

Screen Shot 2021-01-19 at 2 38 18 PM

Example

{
  "requirements": [
    {
      "rule": "cli",
      "binary": "",
      "platform": [
        "macos",
        "linux"
      ],
      "ci": true
    }
  ]
}
@GantMan
Copy link
Member

GantMan commented Jan 20, 2021

It checks for an environment variable named "CI" which is usually set on most CI servers. If it's not, you can set it on your CI server.

Secondly, and I might be misremembering, but if your ci: false it will skip the test when on CI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants