Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 26 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,41 @@
language: php
php:
- '7.2'
- '7.3'

matrix:
include:
- php: 7.2
env: CORCEL='^4.0'
- php: 7.3
env: CORCEL='^4.0'
- php: 7.3
env: CORCEL='^5.0'
- php: 7.4
env: CORCEL='^4.0'
- php: 7.4
env: CORCEL='^5.0'

dist: trusty
sudo: required

addons:
apt:
packages:
- unzip
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
before_install:

before_script:
- unzip tests/config/database.sql.zip -d tests/config/
- mysql -u root -e "create database corcel_acf;"
- mysql -u root corcel_acf < tests/config/database.sql
before_script:

before_install:
- rm composer.lock
- composer self-update
- composer install
- composer require jgrossi/corcel:$CORCEL --no-interaction --no-update

install:
- composer install --prefer-dist --no-interaction --no-suggest

script:
- mkdir -p build/logs
- ./vendor/bin/phpunit
- ./vendor/bin/phpunit
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
],
"require": {
"php": ">=7.2",
"jgrossi/corcel": "^4.0"
"jgrossi/corcel": "^4.0|^5.0"
},
"require-dev": {
"phpunit/phpunit": "^8.0"
"phpunit/phpunit": "^8.4|^9.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading