Skip to content

Commit

Permalink
Fix paths for Travis CI
Browse files Browse the repository at this point in the history
Signed-off-by: Carl Bennett <[email protected]>
  • Loading branch information
carlbennett committed Aug 12, 2016
1 parent fc01e23 commit d5204c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ install:
- pecl install geoip
- pear install http2
script:
- bash -c 'set -e;for file in $(find . -type f -regex .*\.php -print); do php -e -l -f "$file"; done'
- bash -c 'set -e;cd ./tests;for file in $(find . -type f -regex .*\.php -print); do php -e -f "$file"; done'
- bash -c 'set -e;for file in $(find ./src -type f -regex .*\.php -print);do php -e -l -f "$file";done'
- bash -c 'set -e;pushd ./tests;for file in $(find . -type f -regex .*\.php -print);do php -e -f "$file";done;popd'
2 changes: 1 addition & 1 deletion tests/_loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
$path = str_replace("\\", "/", $path);
$classShortName = $path;
$path = "../" . $path . ".php";
$path = "../src/" . $path . ".php";
if (!file_exists($path)) {
trigger_error("Class not found: " .$classShortName, E_USER_ERROR);
}
Expand Down

0 comments on commit d5204c3

Please sign in to comment.