-
Notifications
You must be signed in to change notification settings - Fork 6
/
.gitlab-ci.yml
24 lines (20 loc) · 935 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
image: php:7.2-cli
before_script:
- bash ci/docker_install.sh > /dev/null
- wget https://composer.github.io/installer.sig -O - -q | tr -d '\n' > installer.sig
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
- php -r "if (hash_file('SHA384', 'composer-setup.php') === file_get_contents('installer.sig')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
- php composer-setup.php
- php -r "unlink('composer-setup.php'); unlink('installer.sig');"
- export APP_ENV=testing
- export APP_KEY=$(php -r 'echo md5(uniqid());')
- php composer.phar install --prefer-dist --no-progress --no-suggest
tests:
script:
- php artisan test:phpunit --without-tty
phpCsFixer:
script:
- php artisan test:php-cs-fixer --without-tty
messDetector:
script:
- php artisan test:phpmd --without-tty