From a0a90d4ba67b99d2a27eb8f02cd5055cbaa5b9ad Mon Sep 17 00:00:00 2001 From: prolic Date: Sat, 30 Jun 2018 01:26:39 +0800 Subject: [PATCH] add travis yml --- .travis.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..7f939dc --- /dev/null +++ b/.travis.yml @@ -0,0 +1,38 @@ +sudo: false + +language: php + +php: + - 7.0 + - 7.1 + - 7.2 + - nightly + +matrix: + allow_failures: + - php: nightly + fast_finish: true + +cache: + directories: + - $HOME/.composer/cache + - $HOME/.php-cs-fixer + - $HOME/.local + +env: + - AMP_DEBUG=true + +before_install: + - phpenv config-rm xdebug.ini || echo "No xdebug config." + +install: + - composer update -n --prefer-dist + - wget https://github.com/php-coveralls/php-coveralls/releases/download/v1.0.2/coveralls.phar + - chmod +x coveralls.phar + +script: + - phpdbg -qrr vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml + - PHP_CS_FIXER_IGNORE_ENV=1 php vendor/bin/php-cs-fixer --diff --dry-run -v fix + +after_script: + - ./coveralls.phar