Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Memorekall Member New
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rekall
Memorekall Member New
Commits
4436cefc
Verified
Commit
4436cefc
authored
Nov 30, 2021
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Updated ci, need tests
parent
e9e2c59f
No related branches found
No related tags found
1 merge request
!25
Add a gitlab-ci file
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+24
-20
24 additions, 20 deletions
.gitlab-ci.yml
tools/ci-job.sh
+7
-0
7 additions, 0 deletions
tools/ci-job.sh
with
31 additions
and
20 deletions
.gitlab-ci.yml
+
24
−
20
View file @
4436cefc
image
:
name
:
registry.gitlab.tetras-libre.fr/rekall/Memorekall-member-new
entrypoint
:
[
"
"
]
image
:
docker:latest
services
:
-
docker:dind
variables
:
MYSQL_USER
:
rekall
MYSQL_DATABASE
:
rekall_test
MYSQL_PASSWORD
:
rekall
MYSQL_USER
:
rekall
frwsmember
MYSQL_DATABASE
:
rekall
frwsmember
_test
MYSQL_PASSWORD
:
test
MYSQL_RANDOM_ROOT_PASSWORD
:
ok
BY_PASS_CODE
:
ed156b9188ecddf0c556d5712f0a84cc
MAILER_DSN
:
null
://null
SYMFONY_SECRET
:
0f817363a768f111a17d2522b8d7e2d72cf738b1
LEGACY_URL
:
http://legacy/
LEGACY_URL_EXTERNAL
:
http://localhost/legacy/
TEST_IMAGE
:
registry.gitlab.tetras-libre.fr/rekall/memorekall-member-new
CI_REGISTRY
:
registry.gitlab.tetras-libre.fr
APP_DEBUG
:
1
ENV
:
test
LOG_LEVEL
:
DEBUG
TZ
:
"
Europe/Paris"
PHP_INI_DATE_TIMEZONE
:
"
Europe/Paris"
.cache_template
:
&cache
composer
:
stage
:
test
cache
:
key
:
rekall-global-cache-key
key
:
memo
rekall-
member-
global-cache-key
paths
:
-
$CI_PROJECT_DIR/vendor/
-
$CI_PROJECT_DIR/node_modules/
.before_script_template
:
&install_deps
before_script
:
-
cd $CI_PROJECT_DIR
-
cp .env.test .env
-
composer install
-
npm install
codeception
:
stage
:
test
<<
:
*install_deps
<<
:
*cache
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker pull $TEST_IMAGE
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"'
-
if
:
'
$CI_COMMIT_MESSAGE
=~
/test/'
-
if
:
'
$CI_COMMIT_BRANCH
=~
/test/
||
$CI_COMMIT_BRANCH
==
"production"
||
$CI_COMMIT_BRANCH
==
$CI_DEFAULT_BRANCH'
script
:
-
php vendor/bin/phpunit
-
echo ${CI_PROJECT_DIR}
-
ls ${CI_PROJECT_DIR}
-
docker run -v ${CI_PROJECT_DIR}:/sites/memorekall/www/web_dev -v /log:/sites/memorekall/www/log $TEST_IMAGE ./tools/ci-job.sh
artifacts
:
when
:
always
expire_in
:
1 week
...
...
This diff is collapsed.
Click to expand it.
tools/ci-job.sh
0 → 100755
+
7
−
0
View file @
4436cefc
#!/bin/bash
cd
"
$(
dirname
$0
)
/.."
composer
install
npm
install
npm run dev
composer ci
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