Skip to content

Commit b25d2ca

Browse files
committed
Add Travis CI
1 parent e60e289 commit b25d2ca

File tree

3 files changed

+40
-4
lines changed

3 files changed

+40
-4
lines changed

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
.*
2-
*.lock
3-
vendor
4-
phpunit.xml
1+
vendor/
2+
composer.lock

.travis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
language: php
2+
3+
php:
4+
- 5.4
5+
- 5.5
6+
- 5.6
7+
- 7.0
8+
- 7.1
9+
- 7.2
10+
- hhvm # ignore errors, see below
11+
12+
# lock distro so new future defaults will not break the build
13+
dist: trusty
14+
15+
matrix:
16+
allow_failures:
17+
- php: hhvm
18+
19+
services:
20+
- mysql
21+
22+
sudo: false
23+
24+
install:
25+
- composer install --no-interaction
26+
27+
before_script:
28+
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
29+
30+
script:
31+
- DB_USER=root DB_PASSWD= ./vendor/bin/phpunit --coverage-text

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# MySQL
22

3+
[![Build Status](https://travis-ci.org/friends-of-reactphp/mysql.svg?branch=master)](https://travis-ci.org/friends-of-reactphp/mysql)
4+
35
Async, [Promise](https://github.com/reactphp/promise)-based MySQL database client
46
for [ReactPHP](https://reactphp.org/).
57

@@ -60,6 +62,11 @@ This will install the latest supported version:
6062
$ composer require react/mysql:^0.2
6163
```
6264

65+
This project aims to run on any platform and thus does not require any PHP
66+
extensions and supports running on legacy PHP 5.4 through current PHP 7+ and
67+
HHVM.
68+
It's *highly recommended to use PHP 7+* for this project.
69+
6370
## Tests
6471

6572
To run the test suite, you first need to clone this repo and then install all

0 commit comments

Comments
 (0)