...
Testing and Continuous Integration Setup for the OCL client
Environments
There are 4 environments to be aware of for this project:
- The two current OCL for OpenMRS environments:
- QA: https://openmrs.qa.openconceptlab.org
- This is the staging environment. Merge here, and use for UAT. Has the latest code commits and is reset with each code deployment.
- Lighter-weight than production with ~2,000 concepts.
- Pushing to master rebuilds QA, resets DB. Currently, CIEL Sources and users persist, but other sources and collections reset. We need sources and especially collections to persist in QA (following up on this in Sprint 32).
- Demo: https://openmrs.demo.openconceptlab.org
- This is for sharing with the world what we've got. It should be a demo of production for implementers to use as they experiment with the offering.
- Has the same code as production and is reset daily.
- Larger content set: ~50,000 concepts.
- QA: https://openmrs.qa.openconceptlab.org
- The old OCL for OpenMRS website: https://openmrs.openconceptlab.org/
- The central, external OCL website: https://openconceptlab.org/
CI Builds
- The OCL web client makes use of travis.org for open source to run application builds on each branch, pull request and on master post merge.
- travis.org setup is a two step process, first a configuration file is setup. This file can be found in the repository, here and details for how to set this up can be found in the travis.org documentation. The second step involves linking the repository to travis.org.
- This runs the build and updates the pull request to reflect the build status.
...
We deploy a version of the OCL Client whenever a pull request is opened on the repository and destroy it as soon as the PR is merged/ closed. A link to the deployment is added to the PR review page.
Why was this necessary?
...
Details of how to revoke this access can be found under disconnecting the account.