Skip to content
Snippets Groups Projects
Commit a2b86f68 authored by Tibo's avatar Tibo
Browse files

clean .gitlab-ci.yml

parent ad11725a
No related branches found
No related tags found
No related merge requests found
Pipeline #2539 passed
services:
- mongo
## Cache composer packages between all jobs and all branches ## Cache composer packages between all jobs and all branches
## of this project... ## of this project...
cache: cache:
...@@ -8,7 +5,12 @@ cache: ...@@ -8,7 +5,12 @@ cache:
paths: paths:
- composer-cache/ - composer-cache/
.phptest:
# Test with PHP7.2
test:php72:
image: cylab/php72
services:
- mongo
before_script: before_script:
# Install all project dependencies # Install all project dependencies
- COMPOSER_CACHE_DIR=./composer-cache composer install - COMPOSER_CACHE_DIR=./composer-cache composer install
...@@ -16,12 +18,6 @@ cache: ...@@ -16,12 +18,6 @@ cache:
- cp env.test .env - cp env.test .env
- touch storage/app/db.sqlite - touch storage/app/db.sqlite
- php artisan migrate - php artisan migrate
# Test with PHP7.2
test:php72:
extends: .phptest
image: cylab/php72
script: script:
- vendor/bin/phpunit --coverage-text - vendor/bin/phpunit --coverage-text
- vendor/bin/phpcs - vendor/bin/phpcs
...@@ -32,3 +28,5 @@ test:gitleaks: ...@@ -32,3 +28,5 @@ test:gitleaks:
entrypoint: [""] entrypoint: [""]
script: script:
- gitleaks -v --repo-path=./ --config=gitleaks.toml - gitleaks -v --repo-path=./ --config=gitleaks.toml
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