forked from smindel/silverstripe-gis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.scrutinizer.yml.dist
68 lines (68 loc) · 2.57 KB
/
.scrutinizer.yml.dist
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
build:
nodes:
code-quality:
project_setup:
override:
- 'true'
tests:
override:
- php-scrutinizer-run
-
command: phpcs-run
use_website_config: true
- js-scrutinizer-run
test-mysql:
tests:
before:
- 'php -v'
- 'apt-cache search php | grep dev'
- 'sudo apt-get install -y gdal-bin'
services:
mysql: 5.7
test-postgres:
environment:
variables:
SS_DATABASE_CLASS: 'PostgreSQLDatabase'
SS_DATABASE_SERVER: 'localhost'
SS_DATABASE_NAME: 'scrutinizer'
SS_DATABASE_USERNAME: 'scrutinizer'
SS_DATABASE_PASSWORD: 'scrutinizer'
services:
postgres-postgis:
image: mdillon/postgis
env:
POSTGRES_PASSWORD: 'postgres'
ports:
- 5432
tests:
before:
- 'php -v'
- 'apt-cache search php | grep dev'
- 'sudo apt-get install -y php-pear php5-dev libmagickwand-dev gdal-bin'
- 'sudo pecl install imagick'
- 'php -m'
- 'PGPASSWORD=postgres sudo -E psql -h localhost -U postgres -c "CREATE DATABASE scrutinizer;"'
- PGPASSWORD=postgres sudo -E psql -h localhost -U postgres -c "CREATE USER scrutinizer WITH PASSWORD 'scrutinizer';"
- 'PGPASSWORD=postgres sudo -E psql -h localhost -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE scrutinizer to scrutinizer;"'
- 'PGPASSWORD=postgres sudo -E psql -h localhost -U postgres -d scrutinizer -c "create extension postgis;"'
- 'composer require silverstripe/postgresql'
override:
- command: vendor/bin/phpunit --coverage-clover tmp/coverage.xml
coverage:
file: tmp/coverage.xml
format: clover
filter:
excluded_paths:
- 'tests/*'
- '*.min.js'
- '*/dist/*'
checks:
php: true
javascript: true
coding_style:
php:
spaces:
around_operators:
concatenation: true
other:
after_type_cast: false