Skip to content

Commit

Permalink
Travis, Scrutinizer, test, etc. Improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
pH-7 committed Dec 19, 2015
1 parent dba6e93 commit edf4701
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
*.docx binary

## Exclude files from release
/_test export-ignore
/_tests export-ignore
/_tools export-ignore
/_doc export-ignore
/_repository/import export-ignore
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
_test/*
_tests/*
_install/_license-key.txt
_install/data/caches/smarty_cache/*
_install/data/caches/smarty_compile/*
Expand Down
23 changes: 9 additions & 14 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
filter:
excluded_paths: [_test]
excluded_paths: [_tests, _tools]

tools:
external_code_coverage: true
external_code_coverage:
timeout: 1800
runs: 1

php_code_sniffer: true
php_code_coverage: true

# PHP Mess Detector (http://phpmd.org)
php_mess_detector: true
Expand All @@ -15,26 +17,19 @@ tools:
# Analyzes the size and structure of a PHP project
php_pdepend:
enabled: true
excluded_dirs: [_test]
excluded_dirs: [_tests, _tools]

# Analyzes the size and structure of a PHP project
php_loc:
enabled: true
excluded_dirs: [_test]
excluded_dirs: [_tests, _tools]

# Copy/Paste Detector
php_cpd:
enabled: true
excluded_dirs: [_test]

# Runs the PHP CS Fixer (http://http://cs.sensiolabs.org/)
php_cs_fixer:
enabled: true
command: php-cs-fixer
config:
level: all # "all" allows the following values: psr0, psr1, psr2, and newer
excluded_dirs: [_tests, _tools]

# Runs Scrutinizer's PHP Analyzer Tool
php_analyzer:
enabled: true
excluded_dirs: [_test]
excluded_dirs: [_tests, _tools]
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@ php:
env:
- DB=mysql

before_install:
- composer self-update

install:
# Make sure all dev dependencies are installed
- composer --working-dir=_protected/vendor install

before_script:
# Set up databases for testing
- mysql -e 'create database ph7cms_test;'
- mysql ph7cms_test < _install/data/sql/MySQL/pH7_SchemaGame.sql
- mysql ph7cms_test < _install/data/sql/MySQL/pH7_DataGame.sql
- mysql ph7cms_test < _install/data/sql/MySQL/pH7_Core.sql

script: phpunit --coverage-clover=coverage.clover

after_script:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion _tools/deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function run() {
rm -rf ./_repository/module/*
rm -rf ./_repository/upgrade/*
rm -rf ./_doc/
rm -rf ./_test/
rm -rf ./_tests/
rm -rf ./.git/

## TMP folders
Expand Down

0 comments on commit edf4701

Please sign in to comment.