Skip to content

Commit

Permalink
Renamed CI jobs and switched to minimal profile by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Oct 29, 2023
1 parent 2a27cf3 commit f1d8cbe
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 63 deletions.
116 changes: 54 additions & 62 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -281,63 +281,51 @@ job-mirror: &job-mirror
jobs:

# Isolated theme build.
build-theme-isolated-drupal10:
working_directory: ~/project
docker:
- image: cimg/php:8.2-browsers
<<: *job-build-theme-isolated

# Drupal 10, minimal profile.
build-drupal10-minimal:
build:
<<: *container_config
environment:
DREVOPS_DRUPAL_PROFILE: minimal
DREVOPS_LINT_CONFIG_ALLOW_FAILURE: 1
DREVOPS_TEST_BEHAT_TAGS: smoke
<<: *job-build-no-persist

# Drupal 10, minimal profile, no subtheme.
build-drupal10-minimal-no-subtheme:
# No subtheme.
build-no-subtheme:
<<: *container_config
environment:
DREVOPS_DRUPAL_PROFILE: minimal
CIVICTHEME_SUBTHEME_ACTIVATION_SKIP: 1
CIVICTHEME_LIBRARY_INSTALL_SKIP: 1
DREVOPS_LINT_CONFIG_ALLOW_FAILURE: 1
<<: *job-build-no-persist

# Drupal 10, GovCMS profile, subtheme. Longest test run.
build-drupal10-govcms:
# GovCMS profile, subtheme. Longest test run.
build-govcms:
<<: *container_config
environment:
DREVOPS_DRUPAL_PROFILE: govcms
DREVOPS_TEST_BEHAT_PROFILE: subtheme
<<: *job-build-no-persist

# Drupal 10, GovCMS profile, subtheme is a sibling.
build-drupal10-govcms-sibling:
# GovCMS profile, no subtheme.
build-govcms-no-subtheme:
<<: *container_config
environment:
DREVOPS_DRUPAL_PROFILE: govcms
CIVICTHEME_INSTALL_SIBLING: 1
DREVOPS_TEST_BEHAT_TAGS: smoke
<<: *job-build-no-persist
CIVICTHEME_SUBTHEME_ACTIVATION_SKIP: 1
CIVICTHEME_LIBRARY_INSTALL_SKIP: 1
<<: *job-build

# Drupal 10, GovCMS profile, no subtheme.
build-drupal10-govcms-no-subtheme:
# GovCMS profile, subtheme is a sibling.
build-govcms-sibling:
<<: *container_config
environment:
DREVOPS_DRUPAL_PROFILE: govcms
CIVICTHEME_SUBTHEME_ACTIVATION_SKIP: 1
CIVICTHEME_LIBRARY_INSTALL_SKIP: 1
<<: *job-build
CIVICTHEME_INSTALL_SIBLING: 1
DREVOPS_TEST_BEHAT_TAGS: smoke
<<: *job-build-no-persist

# Drupal 10, minimal profile, 'corporate' content profile.
build-drupal10-minimal-corporate:
build-content-corporate:
<<: *container_config
environment:
DREVOPS_DRUPAL_PROFILE: minimal
CIVICTHEME_CONTENT_PROFILE: corporate
CIVICTHEME_SUBTHEME_ACTIVATION_SKIP: 1
CIVICTHEME_LIBRARY_INSTALL_SKIP: 1
Expand All @@ -346,10 +334,9 @@ jobs:
<<: *job-build-no-persist

# Drupal 10, minimal profile, 'highereducation' content profile.
build-drupal10-minimal-highereducation:
build-content-highereducation:
<<: *container_config
environment:
DREVOPS_DRUPAL_PROFILE: minimal
CIVICTHEME_CONTENT_PROFILE: highereducation
CIVICTHEME_SUBTHEME_ACTIVATION_SKIP: 1
CIVICTHEME_LIBRARY_INSTALL_SKIP: 1
Expand All @@ -358,17 +345,23 @@ jobs:
<<: *job-build-no-persist

# Drupal 10, minimal profile, 'government' content profile.
build-drupal10-minimal-government:
build-content-government:
<<: *container_config
environment:
DREVOPS_DRUPAL_PROFILE: minimal
CIVICTHEME_CONTENT_PROFILE: government
CIVICTHEME_SUBTHEME_ACTIVATION_SKIP: 1
CIVICTHEME_LIBRARY_INSTALL_SKIP: 1
DREVOPS_LINT_CONFIG_ALLOW_FAILURE: 1
DREVOPS_TEST_BEHAT_TAGS: smoke
<<: *job-build-no-persist

# Isolated theme build.
build-theme-isolated:
working_directory: ~/project
docker:
- image: cimg/php:8.2-browsers
<<: *job-build-theme-isolated

# Mirror and redeploy content profiles.
mirror-into-content-branches:
<<: *container_config
Expand Down Expand Up @@ -494,68 +487,68 @@ workflows:
# Commit workflow. Runs for every commit push to the remote repository.
commit:
jobs:

- build-theme-isolated-drupal10:
- build:
filters:
branches:
ignore: /^content\/.*/
tags:
only: /.*/

- build-drupal10-minimal:
- build-no-subtheme:
filters:
branches:
ignore: /^content\/.*/
tags:
only: /.*/
- build-drupal10-minimal-no-subtheme:
- build-govcms:
filters:
branches:
ignore: /^content\/.*/
tags:
only: /.*/
- build-drupal10-govcms:
- build-govcms-no-subtheme:
filters:
branches:
only: /develop|release\/.*|hotfix\/.*/
ignore: /^content\/.*/
tags:
only: /.*/
- build-drupal10-govcms-sibling:
- build-govcms-sibling:
filters:
branches:
only: /^release\/.*|hotfix\/.*/
only: /develop|^release\/.*|^hotfix\/.*/
tags:
only: /.*/
- build-drupal10-govcms-no-subtheme:
- build-content-corporate:
filters:
branches:
ignore: /^content\/.*/
only: /develop|^release\/.*|^hotfix\/.*/
tags:
only: /.*/
- build-drupal10-minimal-corporate:
- build-content-highereducation:
filters:
branches:
only: /^release\/.*|hotfix\/.*/
only: /^release\/.*|^hotfix\/.*/
tags:
only: /.*/
- build-drupal10-minimal-highereducation:
- build-content-government:
filters:
branches:
only: /^release\/.*|hotfix\/.*/
only: /^release\/.*|^hotfix\/.*/
tags:
only: /.*/
- build-drupal10-minimal-government:

- build-theme-isolated:
filters:
branches:
only: /^release\/.*|hotfix\/.*/
ignore: /^content\/.*/
tags:
only: /.*/

- deploy:
requires:
- build-theme-isolated-drupal10
- build-drupal10-govcms-no-subtheme
- build-drupal10-minimal-no-subtheme
- build
- build-govcms
- build-govcms-no-subtheme
- build-theme-isolated
filters:
branches:
# Allowed branches:
Expand All @@ -570,12 +563,11 @@ workflows:

- deploy_artifact:
requires:
- build-theme-isolated-drupal10
- build-theme-isolated-drupal10
- build-drupal10-minimal
- build-drupal10-govcms-no-subtheme
- build-drupal10-govcms
- build-drupal10-minimal-no-subtheme
- build
- build-no-subtheme
- build-govcms
- build-govcms-no-subtheme
- build-theme-isolated
filters:
branches:
only: develop
Expand All @@ -584,10 +576,10 @@ workflows:

- mirror-into-content-branches:
requires:
- build-drupal10-minimal
- build-drupal10-govcms-no-subtheme
- build-drupal10-govcms
- build-drupal10-minimal-no-subtheme
- build
- build-no-subtheme
- build-govcms-no-subtheme
- build-govcms
filters:
branches:
only: develop
Expand Down
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ DREVOPS_DRUPAL_VERSION=10
DREVOPS_DRUPAL_THEME=civictheme

# Drupal profile name (used only when installing from profile).
DREVOPS_DRUPAL_PROFILE=govcms
DREVOPS_DRUPAL_PROFILE=minimal

# Drupal site name (used only when installing from profile).
DREVOPS_DRUPAL_SITE_NAME="CivicTheme Source"
Expand Down

0 comments on commit f1d8cbe

Please sign in to comment.