DEV Community

David Cantrell
David Cantrell

Posted on

2

Automatic cross-platform testing: part 3: MacOS

Previously on this channel

Testing on MacOS

Last time we looked at how to use Cirrus-CI to test your code on FreeBSD without the hassle of having to install and maintain a FreeBSD machine. Conveniently, Cirrus also support testing on MacOS. You can easily add a MacOS build to your code by adding another stanza to the .cirrus.yml file.

Alt Text

This time Cirrus fires off two jobs. At the time of writing, MacOS jobs seem to run a lot faster than FreeBSD jobs - in the above example they provisioned a machine and tested my code in 2 seconds flat, but after over a minute the FreeBSD job was still waiting in a queue for resources to become available.

Alt Text

As we've now come to expect, Travis also picked up that we'd made a change and ran the tests, so we've now got builds going automatically on three platforms, all of them reporting their status back to Github.

Next

The final part of this series will show you how to automatically test on Windows.

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more