Skip to content
Snippets Groups Projects
Verified Commit e9e2c59f authored by David Beniamine's avatar David Beniamine
Browse files

Add a gitlab-ci file

So far this should not work as the test are not in this branch and the
image is not yet on the registry.

First tests should be implemented in tuleap-40
parent 691c6e67
No related branches found
No related tags found
1 merge request!25Add a gitlab-ci file
image:
name: registry.gitlab.tetras-libre.fr/rekall/Memorekall-member-new
entrypoint: [""]
variables:
MYSQL_USER: rekall
MYSQL_DATABASE: rekall_test
MYSQL_PASSWORD: rekall
MYSQL_RANDOM_ROOT_PASSWORD: ok
TZ: "Europe/Paris"
PHP_INI_DATE_TIMEZONE: "Europe/Paris"
.cache_template: &cache
cache:
key: rekall-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
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
artifacts:
when: always
expire_in: 1 week
paths:
- tests/_output
services:
- mysql
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment