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

Add Multiple Platform CI #242

Merged
merged 13 commits into from
Nov 14, 2018
Merged

Add Multiple Platform CI #242

merged 13 commits into from
Nov 14, 2018

Conversation

cocojoe
Copy link
Member

@cocojoe cocojoe commented Nov 9, 2018

Update Code for 4.2

luisrudge
luisrudge previously approved these changes Nov 13, 2018
Copy link
Contributor

@lbalmaceda lbalmaceda left a 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')
Copy link
Contributor

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.

Copy link
Member Author

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'
Copy link
Contributor

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?

Copy link
Member Author

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.

@@ -1,18 +1,16 @@
version: 2
jobs:
build-and-test:
build-and-test-iOS-swift-4.2:
Copy link
Contributor

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

Copy link
Member Author

@cocojoe cocojoe Nov 13, 2018

Choose a reason for hiding this comment

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

Will think about it 😉

@cocojoe cocojoe merged commit 006430d into master Nov 14, 2018
@cocojoe cocojoe deleted the added-multi-platform-ci branch November 15, 2018 11:34
@cocojoe cocojoe added this to the vNext milestone Dec 6, 2018
@cocojoe cocojoe mentioned this pull request Dec 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants