Trapeze is part of the Ionic Ecosystem →
Skip to main content

CI/CD Workflows

Trapeze is most powerful when used as part of a CI/CD or Mobile DevOps automation workflow, such as one using the Appflow Mobile DevOps platform that Trapeze was initially designed for.

To use it in this environment, run the configuration tool in the desired step of your Mobile build workflow. Some examples of common use cases follow.

Auto-incrementing Build Numbers

If your CI/CD service provides an environment variable that automatically increments (Appflow does), then updating the build number for your app is straightforward.

ci.yaml
vars:
CI_BUILD_NUMBER:
default: 1

platforms:
ios:
buildNumber: $CI_BUILD_NUMBER
android:
versionCode: $CI_BUILD_NUMBER

Then call this script as part of your build step. For example, here's how it works in Appflow:

  "scripts": {
"appflow:build": "npx trapeze run ci.yml -y && npm run build"
},