Skip to content

Commit

Permalink
t1
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Nov 2, 2023
1 parent f37ec8c commit 0fe512b
Show file tree
Hide file tree
Showing 13 changed files with 144 additions and 412 deletions.
38 changes: 25 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,12 @@ job-build: &job-build
- run:
name: Lint code with NPM linters
command: docker compose exec -T cli bash -c "npm run --prefix \${DREVOPS_WEBROOT}/themes/contrib/\${DRUPAL_THEME} lint" || [ "${DREVOPS_CI_NPM_LINT_IGNORE_FAILURE:-0}" -eq 1 ]
- run:
name: Lint Drupal theme configuration
command: docker compose exec -T cli bash -c "./scripts/lint-theme-config.sh" || [ "${DREVOPS_CI_DRUPAL_THEME_CONFIG_LINT_IGNORE_FAILURE:-0}" -eq 1 ]
- run:
name: Lint Drupal theme schema
command: docker compose exec -T cli bash -c "./vendor/bin/drush inspect_config civictheme.settings --detail --only-error"
- run:
name: Run tooling tests
command: ./scripts/test-tooling.sh
Expand Down Expand Up @@ -240,6 +246,12 @@ job-build-no-persist: &job-build-no-persist
- run:
name: Lint code with NPM linters
command: docker compose exec -T cli bash -c "npm run --prefix \${DREVOPS_WEBROOT}/themes/contrib/\${DRUPAL_THEME} lint" || [ "${DREVOPS_CI_NPM_LINT_IGNORE_FAILURE:-0}" -eq 1 ]
- run:
name: Lint Drupal theme configuration
command: docker compose exec -T cli bash -c "./scripts/lint-theme-config.sh" || [ "${DREVOPS_CI_DRUPAL_THEME_CONFIG_LINT_IGNORE_FAILURE:-0}" -eq 1 ]
- run:
name: Lint Drupal theme schema
command: docker compose exec -T cli bash -c "./vendor/bin/drush inspect_config civictheme.settings --detail --only-error"
- run:
name: Run tooling tests
command: ./scripts/test-tooling.sh
Expand Down Expand Up @@ -335,28 +347,28 @@ jobs:
build-govcms:
<<: *container_config
environment:
DREVOPS_DRUPAL_PROFILE: govcms
DREVOPS_LINT_CONFIG_ALLOW_FAILURE: 1
DRUPAL_PROFILE: govcms
DREVOPS_CI_DRUPAL_THEME_CONFIG_LINT_IGNORE_FAILURE: 1
<<: *job-build-no-persist

# GovCMS profile, no subtheme.
build-govcms-no-subtheme:
<<: *container_config
environment:
DREVOPS_DRUPAL_PROFILE: govcms
DRUPAL_PROFILE: govcms
CIVICTHEME_SUBTHEME_ACTIVATION_SKIP: 1
CIVICTHEME_LIBRARY_INSTALL_SKIP: 1
DREVOPS_LINT_CONFIG_ALLOW_FAILURE: 1
DREVOPS_CI_DRUPAL_THEME_CONFIG_LINT_IGNORE_FAILURE: 1
<<: *job-build

# GovCMS profile, subtheme is a sibling.
build-govcms-sibling:
<<: *container_config
environment:
DREVOPS_DRUPAL_PROFILE: govcms
DRUPAL_PROFILE: govcms
CIVICTHEME_INSTALL_SIBLING: 1
DREVOPS_LINT_CONFIG_ALLOW_FAILURE: 1
DREVOPS_TEST_BEHAT_TAGS: smoke
DREVOPS_CI_DRUPAL_THEME_CONFIG_LINT_IGNORE_FAILURE: 1
DREVOPS_CI_BEHAT_PROFILE: smoke
<<: *job-build-no-persist

# Drupal 10, minimal profile, 'corporate' content profile.
Expand All @@ -366,8 +378,8 @@ jobs:
CIVICTHEME_CONTENT_PROFILE: corporate
CIVICTHEME_SUBTHEME_ACTIVATION_SKIP: 1
CIVICTHEME_LIBRARY_INSTALL_SKIP: 1
DREVOPS_LINT_CONFIG_ALLOW_FAILURE: 1
DREVOPS_TEST_BEHAT_TAGS: smoke
DREVOPS_CI_DRUPAL_THEME_CONFIG_LINT_IGNORE_FAILURE: 1
DREVOPS_CI_BEHAT_PROFILE: smoke
<<: *job-build-no-persist

# Drupal 10, minimal profile, 'highereducation' content profile.
Expand All @@ -377,8 +389,8 @@ jobs:
CIVICTHEME_CONTENT_PROFILE: highereducation
CIVICTHEME_SUBTHEME_ACTIVATION_SKIP: 1
CIVICTHEME_LIBRARY_INSTALL_SKIP: 1
DREVOPS_LINT_CONFIG_ALLOW_FAILURE: 1
DREVOPS_TEST_BEHAT_TAGS: smoke
DREVOPS_CI_DRUPAL_THEME_CONFIG_LINT_IGNORE_FAILURE: 1
DREVOPS_CI_BEHAT_PROFILE: smoke
<<: *job-build-no-persist

# Drupal 10, minimal profile, 'government' content profile.
Expand All @@ -388,8 +400,8 @@ jobs:
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
DREVOPS_CI_DRUPAL_THEME_CONFIG_LINT_IGNORE_FAILURE: 1
DREVOPS_CI_BEHAT_PROFILE: smoke
<<: *job-build-no-persist

# Isolated theme build.
Expand Down
11 changes: 0 additions & 11 deletions CI.md

This file was deleted.

128 changes: 0 additions & 128 deletions CODE_OF_CONDUCT.md

This file was deleted.

34 changes: 0 additions & 34 deletions DEPLOYMENT.md

This file was deleted.

90 changes: 0 additions & 90 deletions FAQs.md

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Copy `docker-compose.override.default.yml` to `docker-compose.override.yml`.

## Project documentation

- [Development](docs/development.md)
- [FAQs](docs/faqs.md)
- [Testing](docs/testing.md)
- [CI](docs/ci.md)
Expand Down
Loading

0 comments on commit 0fe512b

Please sign in to comment.