Skip to content

Commit

Permalink
Merge pull request #31 from byjg/next
Browse files Browse the repository at this point in the history
Next Revision
  • Loading branch information
byjg authored Jan 17, 2021
2 parents 86c63ee + 4ba5384 commit a506e24
Show file tree
Hide file tree
Showing 33 changed files with 504 additions and 267 deletions.
17 changes: 17 additions & 0 deletions .idea/runConfigurations/Run_Databases.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 0 additions & 38 deletions .idea/runConfigurations/Start_MySql.xml

This file was deleted.

42 changes: 0 additions & 42 deletions .idea/runConfigurations/Start_Postgres.xml

This file was deleted.

42 changes: 0 additions & 42 deletions .idea/runConfigurations/Start_SQL_Server.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/runConfigurations/Test_SqlSever.xml

This file was deleted.

6 changes: 6 additions & 0 deletions .idea/runConfigurations/Test_SqlSever_Dblib.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/runConfigurations/Test_SqlSever_Sqlsrv.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 12 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
language: php

addons:
hosts:
- mysql-container
- postgres-container
- dblib-container

php:
- "7.3"
- "7.2"
Expand All @@ -19,21 +13,22 @@ services:
before_install:
- sudo service mysql stop || echo "mysql not stopped"
- sudo service postgresql stop || echo "postgresql not stopped"
# - docker run --name mssql-container --rm -e ACCEPT_EULA=Y -e SA_PASSWORD=Pa55word -p 1433:1433 -d mcr.microsoft.com/mssql/server
- docker run --name postgres-container --rm -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password -p 5432:5432 -d postgres:9-alpine
- docker run --name mysql-container --rm -e MYSQL_ROOT_PASSWORD=password -p 3306:3306 -d mysql:5.7
- docker-compose up -d postgres mysql

install:
- composer install

script:
- vendor/bin/phpunit
- vendor/bin/phpunit tests/PostgresDatabaseTest.php
- vendor/bin/phpunit tests/MysqlDatabaseTest.php
- vendor/bin/phpunit tests/SqlServerDatabaseTest.php

- vendor/bin/phpunit tests/SqliteDatabaseCustomTest.php
- vendor/bin/phpunit tests/PostgresDatabaseCustomTest.php
- vendor/bin/phpunit tests/MysqlDatabaseCustomTest.php
- vendor/bin/phpunit tests/SqlServerDatabaseCustomTest.php
- vendor/bin/phpunit tests/SqliteDatabase*
- ./wait-for-db.sh postgres && vendor/bin/phpunit tests/PostgresDatabase*
- ./wait-for-db.sh mysql && vendor/bin/phpunit tests/MysqlDatabase*
# - ./wait-for-db.sh mssql && vendor/bin/phpunit tests/SqlServer*

jobs:
include:
- stage: documentation
if: branch = master
install: skip
script: "curl https://opensource.byjg.com/add-doc.sh | bash /dev/stdin php migration"

Loading

0 comments on commit a506e24

Please sign in to comment.