bergamot-translator/doc/CI.md
abhi-agg c64deb50a8
Imported CI scripts from mozilla/bergamot-translator-old (#1)
* CircleCI config, docs and badge

* Increase CircleCI RAM from 4gb to 16gb

Co-authored-by: Motin <motin@motin.eu>
2021-03-10 09:30:39 -08:00

917 B

Continuous Integration

Circle CI is used for continuous integration. Configured via ./.circleci/config.yml.

Run Circle CI locally (requires Docker)

  1. Install the CircleCI local cli
  2. Validate Circle CI configuration (useful exercise before pushing any changes to the configuration)
circleci config validate -c .circleci/config.yml
  1. To better mimic the starting point for CI, commit your changes and clone your repository into a clean directory then run CircleCI inside that directory:
git clone . /tmp/$(basename $PWD)
cd /tmp/$(basename $PWD)
circleci build

Note: Steps related to caching and uploading/storing artifacts will report as failed locally. This is not necessarily a problem, they are designed to fail since the operations are not supported locally by the CircleCI build agent.