-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from KumbiaPHP/dev
Merge dev branch in master
- Loading branch information
Showing
30 changed files
with
789 additions
and
531 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,33 @@ | ||
language: php | ||
dist: trusty | ||
dist: bionic | ||
|
||
php: | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
- master | ||
- 7.4 | ||
- nightly | ||
|
||
matrix: | ||
allow_failures: | ||
- php: master | ||
- php: 5.5 | ||
- php: nightly | ||
|
||
notifications: | ||
slack: kumbiaphp:51JaKQTXASwf52D8b32OyWb9 | ||
# irc: "irc.freenode.org#kumbiaphp" | ||
# email: | ||
# - programador.manuel@gmail.com | ||
# - xxxxx@gmail.com | ||
|
||
|
||
env: | ||
- DB=mysql | ||
# - DB=pgsql | ||
# - DB=sqlite | ||
services: | ||
- mysql | ||
- postgresql | ||
|
||
before_script: | ||
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS test;' -U postgres; fi" | ||
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database test;' -U postgres; fi" | ||
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS test;'; fi" | ||
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE TABLE IF NOT EXISTS test.usuario ( id int(11) NOT NULL DEFAULT 0, nombre varchar(50) NOT NULL , email varchar(100) NOT NULL , activo tinyint(1) NULL DEFAULT 1 , PRIMARY KEY (id) );'; fi" | ||
|
||
- "mysql -e 'DROP DATABASE IF EXISTS kumbia_test;'" | ||
- "mysql -e 'create database kumbia_test;'" | ||
- "psql -c 'DROP DATABASE IF EXISTS kumbia_test;' -U postgres" | ||
- "psql -c 'create database kumbia_test;' -U postgres" | ||
script: | ||
- phpunit --configuration tests/phpunit_$DB.xml --coverage-text --colors --coverage-clover=coverage.clover | ||
- phpunit --configuration tests/phpunit.xml --coverage-text --colors --coverage-clover=coverage.clover | ||
- wget https://scrutinizer-ci.com/ocular.phar | ||
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.