Permalink
Fetching contributors…
Cannot retrieve contributors at this time
82 lines (70 sloc) 1.82 KB
sudo: false
language: php
php:
- 7.0.8
- 7.1
- 7.2
env:
- DB=sqlite
cache:
directories:
- $TRAVIS_BUILD_DIR/vendor
- $TRAVIS_BUILD_DIR/node_modules
- $HOME/.composer/cache
matrix:
include:
- php: 7.0.8
env: DB=mysql
services:
- mysql
- php: 7.0.8
env: DB=maria
addons:
mariadb: 10.1
- php: 7.0.8
env: DB=pgsql
addons:
postgresql: "9.3"
services:
- postgresql
before_install:
- if [[ "$TRAVIS_PHP_VERSION" != "7.1" ]]; then
phpenv config-rm xdebug.ini;
fi
install:
- travis_retry composer install --no-interaction --prefer-dist --no-suggest
- travis_retry npm install
before_script:
- |
if [[ "$TRAVIS_PHP_VERSION" == "7.1" ]]; then
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
fi
- cp -f $TRAVIS_BUILD_DIR/tests/.env.travis $TRAVIS_BUILD_DIR/.env
- make permissions
- make travis
script:
- composer test:lint
- php artisan migrate
- php artisan db:seed
- php artisan migrate:rollback
- composer test:phpcs
# - composer test:phpmd
- make phpunit-ci
- composer test:phpdoc
- composer test:phpcpd
- composer test:loc
# Clear the compiled file and then try to install without the dev dependencies to ensure everything still works
- travis_retry composer install --no-dev --no-interaction --prefer-dist --no-suggest --quiet
- php artisan app:version
after_script:
- |
if [[ -f clover.xml ]]; then
./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
bash <(curl -s https://codecov.io/bash)
fi
- find $TRAVIS_BUILD_DIR/storage/logs/*.log -type f -print -exec cat {} \;
- cat $TRAVIS_BUILD_DIR/.env
notifications:
email: false