Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
varbase
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
varbase
Commits
0f339a75
Commit
0f339a75
authored
4 years ago
by
Rajab Natshah
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3194401
: Switch to CircleCI as the default automated testing platform
parent
919a6a61
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.circleci/config.yml
+36
-54
36 additions, 54 deletions
.circleci/config.yml
with
36 additions
and
54 deletions
.circleci/config.yml
+
36
−
54
View file @
0f339a75
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment