-
Notifications
You must be signed in to change notification settings - Fork 232
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
Add Multiple Platform CI #242
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you feel you're repeating too much lines you can make use of the yaml anchors
feature, which is available in the yaml version used by Circle CI.
@@ -9,7 +9,7 @@ platform :ios do | |||
desc "Installs dependencies using Carthage" | |||
lane :dependencies do |options| | |||
action = options[:action] | |||
carthage(use_binaries: false, command: action, cache_builds: true, platform: 'all') | |||
carthage(use_binaries: false, command: action, cache_builds: true, platform: 'iOS') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about macOS
and tvOS
? They get removed if you change this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Limiting build to the platform in question, otherwise it will build every platform even though it's only using 1. The previous option of 'all' was wrong. I
- run: | | ||
bash <(curl -s https://codecov.io/bash) -J 'Auth0' | ||
bash <(curl -s https://codecov.io/bash) -J 'Auth0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also upload the coverage for the rest of the build variants? Why do you need to pass the package name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've ran into issues in the past with multiple codecov, I don't think it understands what to do with it for example. MacOS doesn't have WebAuth so if that report is sent after the iOS one codecov will report lots of missing codecov.
.circleci/config.yml
Outdated
@@ -1,18 +1,16 @@ | |||
version: 2 | |||
jobs: | |||
build-and-test: | |||
build-and-test-iOS-swift-4.2: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rename it to something shorter. They are all builds running tests.
iOS-swift-4.2-build
build-iOS-swift-4.2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will think about it 😉
Update Code for 4.2