diff --git a/.travis.yml b/.travis.yml index 65a557a..9f33d68 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,10 +32,14 @@ matrix: ## Install or update dependencies install: + - php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" + - php -r "if (hash_file('SHA384', 'composer-setup.php') === 'aa96f26c2b67226a324c27919f1eb05f21c248b987e6195cad9690d5c1ff713d53020a02ac8c217dbf90a7eacc9d141d') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" + - php composer-setup.php --version=1.0.0 - composer validate - - if [ -z "$dependencies" ]; then composer install --prefer-dist -n; fi; - - if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --prefer-dist -n; fi; - - if [ "$dependencies" = "highest" ]; then composer update --prefer-dist -n; fi; + - if [ -z "$dependencies" ]; then php composer.phar install --prefer-dist -n; fi; + - if [ "$dependencies" = "lowest" ]; then php composer.phar update --prefer-lowest --prefer-dist -n; fi; + - if [ "$dependencies" = "highest" ]; then php composer.phar update --prefer-dist -n; fi; + - php composer.phar show - composer show ## Run the actual test and benchmark