fxa/.circleci
Julian Poyourow 565ebb89c9
chore(build): initial nx implementation
Because:

* We want to introduce nx to the repository

This commit:

* Adds nx with working builds

Closes: FXA-7341

Co-authored-by: dschom <dschomburg@mozilla.com>
2023-05-23 08:37:47 -07:00
..
README.md task(CI): Updates to better support parallel smoke tests 2023-03-08 09:55:52 -08:00
assert-branch.sh feat(services): remove fxa-auth-db-mysql, fxa-email-event-proxy, and fxa-email-service 2022-01-13 16:23:22 -08:00
base-install.sh task(CI): Improvements to caching and startup behaviors 2023-01-30 13:14:13 -08:00
build-ts-packages.sh task(CI): Improvements to caching and startup behaviors 2023-01-30 13:14:13 -08:00
cancel-jobs.mjs task(CI): Parallel job cancellation 2023-01-25 09:03:40 -08:00
config.yml chore(build): initial nx implementation 2023-05-23 08:37:47 -07:00
create-lists.sh task(all): Remove ':' characters from npm targets 2023-03-29 17:15:51 -07:00
docker-build-fxa.sh chore(CI): Switch to multi stage docker build and clean up 2023-05-11 17:13:06 -07:00
docker-copy-cache.sh chore(CI): Switch to multi stage docker build and clean up 2023-05-11 17:13:06 -07:00
docker-deploy-fxa.sh chore(CI): Switch to multi stage docker build and clean up 2023-05-11 17:13:06 -07:00
modules-to-test.js feat(services): remove fxa-auth-db-mysql, fxa-email-event-proxy, and fxa-email-service 2022-01-13 16:23:22 -08:00
notify.sh task(CI): build, unit test, and integration test jobs 2023-01-10 12:52:01 -08:00
report-coverage.sh task(CI): build, unit test, and integration test jobs 2023-01-10 12:52:01 -08:00
run-list-parallel.sh Merge pull request #14893 from mozilla/improve-output-in-run-list-parallel 2023-03-02 10:37:39 -08:00
test-package.sh task(CI): build, unit test, and integration test jobs 2023-01-10 12:52:01 -08:00

README.md

CircleCI

config.yml defines the jobs and workflows of our CircleCI deployment.

Scripts

This directory contains scripts used by config.yml to run jobs. More general scripts should be located in ../_scripts or in individual package directories.

Conventions

Tests

Packages are tested with ./test-package.sh. The default action is to run:

yarn install
yarn test

Packages may define a scripts/test-ci.sh as a custom test script.

Builds

By default packages are built using docker. The standard Dockerfile is the preferred method. Packages may define a scripts/build-ci.sh as a custom build script.

Deploys

Packages that create docker images are deployed to docker hub.

New packages require username and password environment variables in CircleCI project settings in order to deploy.

Triggering Workflows

Previously we would trigger jobs directly, but we now trigger workflows instead. To see how workflows are triggered remotely, checkout: https://github.com/mozilla-services/cloudops-deployment/blob/master/projects/fxa/smoke-tests/smoketests.py

Local Testing

With the CircleCI CLI you can run some jobs locally. Deploy jobs will fail to run.

For example, to run the test-many job:

circleci config process .circleci/config.yml > .circleci/local.yml
circleci local execute -c .circleci/local.yml --job test-many