plu / pxctest

Execute tests in parallel on multiple iOS Simulators
MIT License
800 stars 57 forks source link

Adds podspec and scripts to release and publish #45

Closed arlo-egg closed 7 years ago

arlo-egg commented 7 years ago

Thanks for making this! I have implemented it in our app to run our test matrix on 4 simulators in parallel. It has almost halved our CI build times 😄

We would like the ability to include a versioned instance of the built binary as a CocoaPod dependency in our app. We have a few reasons for wanting this:

  1. to cache this along with our other pods so CI builds don't need to wait for brew install
  2. to only rely on a single dependency manager
  3. to have a versioned instance of this tool

I borrowed heavily from Swiftlint's implementation of this; see https://github.com/realm/SwiftLint/blob/master/SwiftLint.podspec https://github.com/realm/SwiftLint/blob/master/Makefile

I do not know how you normally publish to Homebrew but I added a couple of scripts with the intent of minimizing the number of steps & places needed to update the version etc.

Let me know if you like this approach.

Next steps would be to register as a pod owner here: https://guides.cocoapods.org/making/getting-setup-with-trunk.html and try releasing a new version (0.3.4?).

plu commented 7 years ago

Thank you!

plu commented 7 years ago
--------------------------------------------------------------------------------
 🎉  Congrats

 🚀  pxctest (0.3.3) successfully published
 📅  July 4th, 12:51
 🌎  https://cocoapods.org/pods/pxctest
 👍  Tell your friends!
--------------------------------------------------------------------------------
/tmp/test$ pod install
Analyzing dependencies
Downloading dependencies
Installing pxctest (0.3.3)
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use `Sample.xcworkspace` for this project from now on.
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.

[!] Automatically assigning platform ios with version 10.3 on target Sample because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

/tmp/test$ ./Pods/pxctest/pxctest version
pxctest 0.3.3 (355ea3e)