Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
Troubleshoot TravisCI directory issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hxtree committed Jan 9, 2021
1 parent d9a9075 commit a01f5f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
include:
- stage: Test
install:
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- composer install
- composer update --no-scripts
script:
Expand Down
6 changes: 3 additions & 3 deletions test/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
* file that was distributed with this source code.
*/

chdir(dirname(__DIR__));

require 'vendor/autoload.php';

// define common directories
define('ROOT_DIR', dirname(__DIR__, 1) . '/');
define('PUBLIC_DIR', ROOT_DIR . 'public/');
define('ASSET_DIR', ROOT_DIR . 'assets/');
define('IMAGE_DIR', ASSET_DIR . 'images/');

//chdir(dirname(__DIR__));
require ROOT_DIR . 'vendor/autoload.php';

// set include path
set_include_path(ROOT_DIR);

Expand Down

0 comments on commit a01f5f2

Please sign in to comment.