forked from byjg/php-migration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (31 loc) · 1.12 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
language: php
addons:
hosts:
- mysql-container
- postgres-container
- dblib-container
php:
- "7.3"
- "7.2"
- "7.1"
- "7.0"
- "5.6"
services:
- docker
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
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