Skip to content

Commit

Permalink
Add Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
clue committed Mar 12, 2018
1 parent e60e289 commit b25d2ca
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .gitignore
@@ -1,4 +1,2 @@
.*
*.lock
vendor
phpunit.xml
vendor/
composer.lock
31 changes: 31 additions & 0 deletions .travis.yml
@@ -0,0 +1,31 @@
language: php

php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- hhvm # ignore errors, see below

# lock distro so new future defaults will not break the build
dist: trusty

matrix:
allow_failures:
- php: hhvm

services:
- mysql

sudo: false

install:
- composer install --no-interaction

before_script:
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'

script:
- DB_USER=root DB_PASSWD= ./vendor/bin/phpunit --coverage-text
7 changes: 7 additions & 0 deletions README.md
@@ -1,5 +1,7 @@
# MySQL

[![Build Status](https://travis-ci.org/friends-of-reactphp/mysql.svg?branch=master)](https://travis-ci.org/friends-of-reactphp/mysql)

Async, [Promise](https://github.com/reactphp/promise)-based MySQL database client
for [ReactPHP](https://reactphp.org/).

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

This project aims to run on any platform and thus does not require any PHP
extensions and supports running on legacy PHP 5.4 through current PHP 7+ and
HHVM.
It's *highly recommended to use PHP 7+* for this project.

## Tests

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

0 comments on commit b25d2ca

Please sign in to comment.