Skip to content
Snippets Groups Projects
Commit 0f339a75 authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3194401: Switch to CircleCI as the default automated testing platform

parent 919a6a61
No related branches found
No related tags found
No related merge requests found
version: 2.1 version: 2.1
orbs: orbs:
browser-tools: circleci/browser-tools@1.1 browser-tools: circleci/browser-tools@1.1
executors: defaults: &defaults
varbase-executor: docker:
docker: - image: circleci/php:7.3-apache-stretch-node-browsers
- image: circleci/php:7.3-apache-stretch-node-browsers auth:
auth: username: mydockerhub-user
username: mydockerhub-user password: $DOCKERHUB_PASSWORD # context / project UI env-var reference
password: $DOCKERHUB_PASSWORD - image: circleci/mysql:8.0.4
- image: circleci/mysql:8.0.4 auth:
auth: username: mydockerhub-user
username: mydockerhub-user password: $DOCKERHUB_PASSWORD # context / project UI env-var reference
password: $DOCKERHUB_PASSWORD entrypoint: ['docker-entrypoint.sh', '--default-authentication-plugin=mysql_native_password']
entrypoint: ['docker-entrypoint.sh', '--default-authentication-plugin=mysql_native_password'] environment:
environment: MYSQL_ROOT_PASSWORD: rootpw
MYSQL_ROOT_PASSWORD: rootpw MYSQL_DATABASE: test_varbase
MYSQL_DATABASE: test_varbase MYSQL_USER: user
MYSQL_USER: user MYSQL_PASSWORD: passw0rd
MYSQL_PASSWORD: passw0rd working_directory: /var/www/html/varbase/docroot
working_directory: /var/www/html/varbase/docroot aliases:
jobs: - &composer-cache v4-composer-cache
commands:
varbase-build: varbase-build:
resource_class: small
executor: varbase-executor
steps: steps:
- checkout: - checkout:
path: /var/www/html/varbase path: /var/www/html/varbase
...@@ -62,7 +61,7 @@ jobs: ...@@ -62,7 +61,7 @@ jobs:
sudo service apache2 restart sudo service apache2 restart
- restore_cache: - restore_cache:
keys: keys:
- v4-composer-cache - *composer-cache
## Waiting for MySQL to be ready. ## Waiting for MySQL to be ready.
- run: - run:
...@@ -122,7 +121,7 @@ jobs: ...@@ -122,7 +121,7 @@ jobs:
composer install --no-interaction -vvv composer install --no-interaction -vvv
git clone --branch 9.0.x https://github.com/vardot/varbase.git /var/www/html/varbase/docroot/profiles/varbase git clone --branch 9.0.x https://github.com/vardot/varbase.git /var/www/html/varbase/docroot/profiles/varbase
- save_cache: - save_cache:
key: v4-composer-cache key: *composer-cache
paths: paths:
- ~/.composer/cache - ~/.composer/cache
...@@ -167,13 +166,12 @@ jobs: ...@@ -167,13 +166,12 @@ jobs:
command: | command: |
cd /var/www/html/varbase/docroot/profiles/varbase cd /var/www/html/varbase/docroot/profiles/varbase
behat --strict --no-snippets -f pretty -o std tests/features/varbase/step1-init-tests/ behat --strict --no-snippets -f pretty -o std tests/features/varbase/step1-init-tests/
jobs:
varbase-testing-01-website-base-requirements: varbase-testing-01-website-base-requirements:
resource_class: small <<: *defaults
executor: varbase-executor
steps: steps:
- checkout: - varbase-build
path: /var/www/html/varbase ## Automated Functional Acceptance Testing group - 01 website base requirements
## Automated Functional Acceptance Testing group - 01 website base requirements
- run: - run:
name: Automated Functional Acceptance Testing group - 01 website base requirements name: Automated Functional Acceptance Testing group - 01 website base requirements
no_output_timeout: 30m no_output_timeout: 30m
...@@ -181,12 +179,9 @@ jobs: ...@@ -181,12 +179,9 @@ jobs:
cd /var/www/html/varbase/docroot/profiles/varbase cd /var/www/html/varbase/docroot/profiles/varbase
behat --strict --no-snippets -f pretty -o std tests/features/varbase/step2-apply-tests/01-website-base-requirements/ behat --strict --no-snippets -f pretty -o std tests/features/varbase/step2-apply-tests/01-website-base-requirements/
varbase-testing-02-user-management-03-admin-management: varbase-testing-02-user-management-03-admin-management:
resource_class: small <<: *defaults
executor: varbase-executor
working_directory: /var/www/html/varbase/docroot
steps: steps:
- checkout: - varbase-build
path: /var/www/html/varbase
## Automated Functional Acceptance Testing group - 02 user management ## Automated Functional Acceptance Testing group - 02 user management
- run: - run:
name: Automated Functional Acceptance Testing group - 02 user management name: Automated Functional Acceptance Testing group - 02 user management
...@@ -196,11 +191,9 @@ jobs: ...@@ -196,11 +191,9 @@ jobs:
behat --strict --no-snippets -f pretty -o std tests/features/varbase/step2-apply-tests/02-user-management/ behat --strict --no-snippets -f pretty -o std tests/features/varbase/step2-apply-tests/02-user-management/
behat --strict --no-snippets -f pretty -o std tests/features/varbase/step2-apply-tests/03-admin-management/ behat --strict --no-snippets -f pretty -o std tests/features/varbase/step2-apply-tests/03-admin-management/
varbase-testing-04-content-structure: varbase-testing-04-content-structure:
resource_class: small <<: *defaults
executor: varbase-executor
steps: steps:
- checkout: - varbase-build
path: /var/www/html/varbase
## Automated Functional Acceptance Testing group - 04 content structure ## Automated Functional Acceptance Testing group - 04 content structure
- run: - run:
name: Automated Functional Acceptance Testing group - 04 content structure name: Automated Functional Acceptance Testing group - 04 content structure
...@@ -209,11 +202,9 @@ jobs: ...@@ -209,11 +202,9 @@ jobs:
cd /var/www/html/varbase/docroot/profiles/varbase cd /var/www/html/varbase/docroot/profiles/varbase
behat --strict --no-snippets -f pretty -o std tests/features/varbase/step2-apply-tests/04-content-structure/ behat --strict --no-snippets -f pretty -o std tests/features/varbase/step2-apply-tests/04-content-structure/
varbase-testing-05-content-management: varbase-testing-05-content-management:
resource_class: small <<: *defaults
executor: varbase-executor
steps: steps:
- checkout: - varbase-build
path: /var/www/html/varbase
## Automated Functional Acceptance Testing group - 05 content-management ## Automated Functional Acceptance Testing group - 05 content-management
- run: - run:
name: Automated Functional Acceptance Testing group - 05 content-management name: Automated Functional Acceptance Testing group - 05 content-management
...@@ -225,16 +216,7 @@ jobs: ...@@ -225,16 +216,7 @@ jobs:
workflows: workflows:
varbase-workflow: varbase-workflow:
jobs: jobs:
- varbase-build - varbase-testing-01-website-base-requirements
- varbase-testing-01-website-base-requirements: - varbase-testing-02-user-management-03-admin-management
requires: - varbase-testing-04-content-structure
- varbase-build - varbase-testing-05-content-management
- varbase-testing-02-user-management-03-admin-management:
requires:
- varbase-build
- varbase-testing-04-content-structure:
requires:
- varbase-build
- varbase-testing-05-content-management:
requires:
- varbase-build
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment