Permalink
Browse files

Travis, Scrutinizer, test, etc. Improvement

  • Loading branch information...
1 parent dba6e93 commit edf470115d3ed50efb26214831afcfe2cbd9410f @pH-7 pH-7 committed Dec 19, 2015
Showing with 26 additions and 17 deletions.
  1. +1 −1 .gitattributes
  2. +1 −1 .gitignore
  3. +9 −14 .scrutinizer.yml
  4. +14 −0 .travis.yml
  5. 0 {_test → _tests}/Unit/.keep
  6. +1 −1 _tools/deployment.sh
View
@@ -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
View
@@ -1,4 +1,4 @@
-_test/*
+_tests/*
_install/_license-key.txt
_install/data/caches/smarty_cache/*
_install/data/caches/smarty_compile/*
View
@@ -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
@@ -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]
View
@@ -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:
View
File renamed without changes.
@@ -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

0 comments on commit edf4701

Please sign in to comment.