forked from desarrolla2/Cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (35 loc) · 1.07 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
39
40
41
42
43
44
language: php
#sudo: false
php:
- 7.1
- 7.2
- nightly
matrix:
allow_failures:
- php: nightly
services:
- mysql
- mongodb
- redis-server
- memcached
notifications:
email:
before_script:
# Create Mysql Database
- mysql -e 'CREATE DATABASE IF NOT EXISTS `cache`;'
- mysql -e 'USE `cache`; CREATE TABLE `cache` (`k` varchar(255) NOT NULL, `v` text NOT NULL, `t` int(11) NOT NULL, PRIMARY KEY (`k`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;'
# Enable extensions
- yes '' | pecl install --soft mongodb
- ls .travis/*.ini | xargs phpenv config-add
- test "$TRAVIS_PHP_VERSION" != "nightly" || phpenv config-rm memcached.ini || true
# Install dependencies
- composer self-update
- composer install --ignore-platform-reqs
- composer require --dev "satooshi/php-coveralls:~0.6" --ignore-platform-reqs
- mkdir -p build/logs
script:
- phpunit -v --coverage-text --coverage-xml=./build/logs/clover.xml
after_script:
- ls
- php vendor/bin/coveralls -v