forked from SamsonPHP/bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
61 lines (55 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
51
52
53
54
55
56
57
58
59
60
tools:
php_sim: true
php_pdepend: true
php_analyzer: true
# comment line below if this is paid scrutinizer project
external_code_coverage: true
php_cs_fixer:
config: { level: psr2 } # or psr1 if you would just like to get fixes for PSR1
php_code_sniffer:
config:
standard: "PSR2"
filter:
excluded_paths:
- 'ci/*'
- 'tests/*'
- 'fixtures/*'
- 'features/*'
build:
project_setup:
before:
-
command: 'phantomjs --webdriver=8643'
background: true
# run migrations for now only http requests
- wget http://test.local
dependencies:
before:
# Uncomment below to create database and user "test"
# - gunzip dump.sql.gz
# - mysql -uroot -e "CREATE DATABASE test"
# - mysql -uroot test < dump.sql
# - mysql -uroot -e "CREATE USER 'test'@'localhost' IDENTIFIED BY 'test'";
# - mysql -uroot -e "GRANT ALL PRIVILEGES ON *.* TO 'test'@'localhost' WITH GRANT OPTION";
environment:
php:
version: 5.6
selenium: true
mysql: 5.6
variables:
APPLICATION_ENV: test
hosts:
# change to your actual testing domain
test.local: '127.0.0.1'
apache2:
modules: ['rewrite']
sites:
test:
web_root: 'www/'
# change to your actual testing domain
host: 'test.local'
tests:
override:
- 'vendor/bin/behat -p scrutinizer'
- 'mv Fail.*.jpg ~/artifacts/ 2>/dev/null'
- 'vendor/bin/phpunit --coverage-clover=coverage.clover --coverage-text'