diff --git a/.travis.yml b/.travis.yml index d6f3054..df78214 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: php - + cache: directories: - src/vendor/ @@ -8,13 +8,12 @@ cache: php: - 5.6 - 7.0 - + before_script: - - cd src/ - composer config --global http-basic.repo.magento.com $COMPOSER_MAGENTO_USERNAME $COMPOSER_MAGENTO_PASSWORD - composer self-update - composer install --prefer-source --no-interaction --dev --no-scripts - + script: - phpunit --coverage-clover "coverage.xml" -c dev/tests/unit/phpunit.xml diff --git a/src/composer.json b/composer.json similarity index 95% rename from src/composer.json rename to composer.json index 38a9047..2296f76 100644 --- a/src/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ "autoload": { "files": [ "registration.php" ], "psr-4": { - "Meanbee\\MagentoRoyalmail\\": "" + "Meanbee\\MagentoRoyalmail\\": "src/" } }, "authors": [ diff --git a/src/composer.lock b/composer.lock similarity index 100% rename from src/composer.lock rename to composer.lock diff --git a/docker-compose.yml b/docker-compose.yml index a6a7b9a..601d9d8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,7 @@ appdata: image: tianon/true volumes: - ./magento:/var/www/magento - - ./:/src + - ./:./src - ~/.composer/cache:/root/.composer/cache fpm: