-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.scrutinizer.yml
50 lines (50 loc) · 1.58 KB
/
.scrutinizer.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
build:
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
# coverage:
# tests:
# override:
# -
# command: 'vendor/bin/phpunit --coverage-clover=clover.xml'
# coverage:
# file: clover.xml
# format: clover
my-node:
services:
redis: 4
environment:
variables:
DB_HOST: '127.0.0.1'
DB_NAME: 'php_slim_rest_api'
DB_USER: 'root'
DB_PASS: ''
DB_PORT: '3306'
DISPLAY_ERROR_DETAILS: true
#APP_DOMAIN: 'https://php-slim-rest-api-sql.herokuapp.com'
SECRET_KEY: 'YourSuperSecret-KeY'
REDIS_ENABLED: true
REDIS_URL: 'localhost'
LOGS_ENABLED: false
php:
version: 8.0.0
project_setup:
before:
#- sudo apt-get install mysql-server
#- sudo service start mysql || true
- sudo service mysql restart
- mysql -e "CREATE DATABASE php_slim_rest_api"
- mysql php_slim_rest_api < database/database.sql
override:
- php-scrutinizer-run
# -
# command: 'vendor/bin/phpunit --coverage-clover=clover.xml'
# coverage:
# file: 'clover.xml'
# format: 'clover'
dependencies:
override:
- composer update
- composer install