Skip to content

Skip test if CI #1632

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

Merged
merged 3 commits into from
Nov 7, 2022
Merged

Skip test if CI #1632

merged 3 commits into from
Nov 7, 2022

Conversation

stephencelis
Copy link
Member

We have an existing flakey test that we want to skip on CI, but we need to pass along the env var to the scheme for it to apply to Xcode builds, simulators, etc.

We have an existing flakey test that we want to skip on CI, but we need
to pass along the env var to the scheme for it to apply to Xcode builds,
simulators, etc.

extension ProcessInfo {
var isCI: Bool {
self.environment["CI"].map { Bool($0.lowercased()) ?? ($0 == "1") } ?? false
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to GitHub, == "true" should probably be good enough, but doesn't hurt to generalize...

Comment on lines 5 to 7
print("!!!")
dump(self.environment)
print("!!!")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we wanna remove these before merging right?

Suggested change
print("!!!")
dump(self.environment)
print("!!!")

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still debugging.

@stephencelis stephencelis merged commit e93f02a into main Nov 7, 2022
@stephencelis stephencelis deleted the skip-if-ci branch November 7, 2022 23:35
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

Successfully merging this pull request may close these issues.

2 participants