Codeship is a hosted continuous integration (CI) server. Using the Rainforest CLI, it’s easy to configure CodeShip to run your Rainforest test suite after each deployment. We built a sample project on Github to show how we integrate with various CI tools, including CodeShip.
Our project is configured to provide a continuous delivery flow by default. Every time code is pushed to the
develop branch, CodeShip:
- Runs the automated tests.
- Installs the Rainforest CLI.
- Deploys the
developbranch to a staging server.
- Runs the Rainforest tests using the Rainforest CLI on the staging server.
If any step fails, the build fails. This prevents the deployment of broken code to your users.
For information on how to use CodeShip, we encourage you to check out their documentation.
You must use the CodeShip web interface to configure your build. The first step in getting CodeShip to work with Rainforest is to install the Rainforest CLI in the configuration setup.
Add the following line to the setup section:
brew install rainforestapp/public/rainforest-cli
You must provide CodeShip with your Rainforest API token to trigger the Rainforest run. Configure your Rainforest test data in the project’s settings. You can find your token on the Integrations settings page of your Rainforest account.
RAINFOREST_TOKEN environment variable in CodeShip, and you’re done.
The next step is to configure your deployment process for your staging server. In our example, we’re using Heroku. Refer to the CodeShip documentation if you’re using a different hosting provider.
Test your setup by committing a change to your
develop branch and pushing it to your Git repository. CodeShip detects the change and deploys your code. This is how many of our customers increase their QA coverage and link Rainforest into their continuous delivery flow.
If you have any questions, reach out to us at [email protected].
Updated about 1 month ago