-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ebfd7ca
commit 77e0b6c
Showing
1 changed file
with
13 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,52 @@ | ||
version: 2 | ||
aliases: | ||
- &container_config | ||
|
||
jobs: | ||
build: | ||
working_directory: /app | ||
|
||
docker: | ||
- image: drevops/ci-runner:24.4.0 | ||
environment: | ||
DRUPAL_VERSION: 10 | ||
|
||
- &build | ||
<<: *container_config | ||
steps: | ||
- checkout | ||
|
||
- setup_remote_docker | ||
|
||
- run: | ||
name: Adjust codebase for CI | ||
command: sed -i -e "/###/d" docker-compose.yml && sed -i -e "s/##//" docker-compose.yml | ||
|
||
- run: | ||
name: Build | ||
command: ahoy build | ||
no_output_timeout: 30m | ||
|
||
- run: | ||
name: Lint code | ||
command: ahoy lint || [ "${CI_LINT_IGNORE_FAILURE:-0}" -eq 1 ] | ||
|
||
- run: | ||
name: Run tests | ||
command: ahoy test-bdd || [ "${CI_TEST_IGNORE_FAILURE:-0}" -eq 1 ] | ||
|
||
- run: | ||
name: Process artifacts | ||
command: | | ||
ahoy cli "mkdir -p /app/screenshots" | ||
mkdir -p /tmp/artifacts/behat | ||
docker cp "$(docker compose ps -q cli)":/app/screenshots /tmp/artifacts/behat | ||
when: always | ||
|
||
- store_test_results: | ||
path: /tmp/test_results | ||
|
||
- store_artifacts: | ||
path: /tmp/artifacts | ||
|
||
jobs: | ||
|
||
build_d10: | ||
<<: *build | ||
|
||
build_d9: | ||
<<: *build | ||
docker: | ||
- image: drevops/ci-runner:24.4.0 | ||
environment: | ||
DRUPAL_VERSION: 9 | ||
|
||
workflows: | ||
version: 2 | ||
main: | ||
jobs: | ||
- build_d9 | ||
- build_d10 | ||
- build |