Skip to content
Snippets Groups Projects
Commit f7b08a18 authored by Maxime FRIESS's avatar Maxime FRIESS :blue_heart:
Browse files

[ci] Added CI

parent 42f289d8
1 merge request!4Added CI
Pipeline #99655 failed with stages
in 1 minute and 35 seconds
image: php:latest
stages:
- build
- test
cache:
- key:
files:
- composer.lock
paths:
- vendor/
before_script:
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- pecl install xdebug
- docker-php-ext-enable xdebug
- echo "xdebug.mode=coverage" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- apt-get update
- apt-get install -y git unzip
- composer install
tests:
stage: test
script:
- php artisan test --coverage
apidoc:
stage: build
script:
- php artisan l5-swagger:generate
artifacts:
paths:
- storage/api-docs/api-docs.json
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment