.travis.yml
language: php
php:
- '7.3'
- '7.4'
env:
- MYSQL_VERSION=8.0
dist: trusty
sudo: required
services:
- docker
before_install:
- echo "memory_limit=3G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- sudo /etc/init.d/mysql stop
- make start_db V=$MYSQL_VERSION
install: composer install
before_script:
- mkdir -p build/logs
- 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
script: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
after_script: ./cc-test-reporter after-build --coverage-input-type clover --exit-code $TRAVIS_TEST_RESULT