Kaboom! In January, CI/CD for Flutter announced more than 10 product updates and this is just the beginning. Developers have by now saved 244 020 minutes with Codemagic CI/CD 🤩
February has been short and sweet. We have added some valuable features to Codemagic and have some pretty epic news to share.
Changes in build logic
Codemagic recently changed the order of build steps by moving the Running tests step up to precede Building Android app and Building iOS app.
Now, we have added an option in the UI to stop the build when tests fail, enabling you to get the result of the build faster. In your App settings, check the Stop build if tests fail option to stop the build should any of the tests fail.
Environment variables are useful for storing information that you do not want to store in the repository, such as your credentials or workflow-specific data. You only have to enter the name and the value of the variable, check Secure if you wish to hide the value in UI and click Add.
To access a variable, add the
$ symbol in front of its name. For example, access
API_TOKEN by using
Build status badges
This has been a desired feature for Flutter developers. It’s now possible to display your app’s build statuses by embedding the status badge to your repository’s README or website. Clicking on the badge will redirect you to the corresponding build on Codemagic. The available statuses are passed, failed, tests failed and unknown.
Here’s how to display the build status of an app:
1. Go to app settings.
2. In the Workflow settings section, click on Build status badge to view its details.
3. Copy the contents of the Badge markdown field and paste it into your repository’s README or website.
Build status badges are workflow-specific and correspond to the latest build in a workflow, meaning that the build status is updated only for the branches tracked by the workflow.
Connecting with Flutter enthusiasts and collecting first-hand feedback from Flutter developers is our top priority in order to build a seamless CI/CD service for Flutter. “CI as smooth as Flutter” has traveled around the globe and collected a lot of positive feedback. From India to London. From Estonia to Barcelona.