diff --git a/docs/sysadmins/ci-cd.md b/docs/sysadmins/ci-cd.md index aca552811f..632a7af02b 100644 --- a/docs/sysadmins/ci-cd.md +++ b/docs/sysadmins/ci-cd.md @@ -1,6 +1,6 @@ # CI/CD -We use CircleCI to manage Continuous Integration and Continuous Deployment. +We use CircleCI to manage Continuous Integration and Continuous Deployment. | **Environment** | **Branch** | |---------------------|-----------------------------------------| @@ -10,9 +10,9 @@ We use CircleCI to manage Continuous Integration and Continuous Deployment. | TeachOSM | deployment/teachosm-tasking-manager | | Indonesia | deployment/id-tasking-manager | -Each environment has its own set of environment variables which are stored as secrets in the CircleCI Organization Settings under Contexts. +Each environment has its own set of environment variables which are stored as secrets in the CircleCI Organization Settings under Contexts. -- OPSGENIE_API +- OPSGENIE_API - TM_APP_API_URL - TM_APP_API_VERSION - TM_APP_BASE_URL @@ -30,10 +30,13 @@ Each environment has its own set of environment variables which are stored as se ## Automated Tests -For each Pull Request and branch, the CI runs a set of frontend and backend tests. We have a context in place called "tasking-manager-testing" for setting up the database with the following environment variables: +For each Pull Request and branch, the CI runs a set of frontend and backend tests. We have a context in place called "tasking-manager-testing" for setting up the database with the following environment variables: -- POSTGRES_DB -- POSTGRES_ENDPOINT +- POSTGRES_DB +- POSTGRES_ENDPOINT - POSTGRES_USER +- TM_ORG_CODE +- TM_ORG_NAME -Note that the POSTGRES_DB variable should be for the default database (in our case `tm`) the testing script will create a database called `test_$POSTGRES_DB` during setup. +Note that the POSTGRES_DB variable should be for the default database (in our case `tm`) the testing script will create a database called `test_$POSTGRES_DB` during setup. +The `TM_ORG_*` vars are required for certain tests to pass; most notably )`test_variable_replacing` in the `TestTemplateService`.