Specify app repository
- Click Add a new app on Nevercode dashboard.
- Choose whether to add your application via supported providers using OAuth or add it manually using the other available authentication methods.
Define the lane to be built
After specifying app repository, Nevercode takes a first look at it by listing the
branches in this repository. The next step for you is to select the branch you want Nevercode to scan for projects.
- Select a
branchfrom the dropdown that Nevercode should scan. Note that you can change the branch later if needed.
- Click Scan branch.
Nevercode scans the repository from the specified branch. This includes cloning the repository, looking up the available
Fastfilesand listing the pre-configured
lanes. All this can be monitored real-time from your browser via the live log window.
- Once scanning the branch has finished, choose the
lanewhich will be executed as the main build step by Nevercode.
- Finalize the setup by checking the appropriate build options and click Save and start build.
Nevercode does not automatically install CocoaPods, Carthage or any other external dependencies for fastlane projects. Please use the fastlane's built-in actions, such as
carthage, to gain control of that.
match from the
Fastfile, keep in mind that you need to grant access to the credentials repository and expose the match passphrase during the build. Both can be securely achieved thanks to the well designed environment variable support of fastlane and Nevercode's support for several SSH keys for authentication.
In your app settings on Nevercode, navigate to the Environment tab to manage environment variables and files:
- match passphrase can be defined as a
MATCH_PASSWORDenvironment file — this will be automatically detected by fastlane and used to decrypt the credentials repository.
- You can upload the SSH key for cloning the credentials repository as an environment file, i.e.
MATCH_SSH_KEY. All environment files whose variable name has the suffix
_SSH_KEYwill be automatically added to the SSH agent and will be ready for use during the whole build process.
Testing in Nevercode with fastlane for iOS is 100% automatic. By default,
scan is used to invoke the test run, but you can easily swap it out for any other
lane that you have configured for your test runs. Test results are automatically collected and you don't need to do anything to convert the results from one format to another or place them in a special location on the build machine.
In case you wish to run tests as part of the main build step, we suggest that you use Trainer to generate reliable JUnit results from the test run and put the results in a directory where we can discover them:
Nevercode detects your fastlane tests for Android automatically. However, tests are disabled by default and have to be enabled manually.
- In your app settings on Nevercode, navigate to the Test tab.
- Click on fastlane Gradle to expand it.
- Select Enabled and type the lane name for tests as specified in your
- If you would like to run the tests on Android emulator, make sure to select Require Android emulator.
- Click Save to finish the setup. Your fastlane tests will be enabled and run each time you build your app.
Publish your build artifacts
You can use either
fastlane to take care of artifact distribution or choose from a number of Nevercode's own integrations.
Manage build versions
To make your build version management easy, Nevercode exports the
NEVERCODE_BUILD_NUMBER environment variable that you can use in your build script. For instance, you could make use of it within
increment_version_number action to define a new version for each build.
Check out Nevercode documentation for more.