-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (51 loc) · 1.54 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
45
46
47
48
49
50
51
language: php
services:
- memcached
php:
- 5.6
- 7.0
- 7.1
# - hhvm
env:
- DB=mysql # only database tests against mysql
- DB=sqlite # only database tests against postgresql
- DB=pgsql
addons:
postgresql: "9.3"
install:
- rm -rf vendor/corneltek/serializerkit
- echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- phpenv config-add tests/php.ini
- phpenv rehash
- echo 'date.timezone = "Asia/Taipei"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- travis_retry composer self-update
- travis_retry composer require "satooshi/php-coveralls" "^1" --no-update --dev
- travis_retry composer install
before_script:
- psql -c "create database testing;" -U postgres
- mysql -uroot -e "create database testing charset utf8;"
- cp -v db/config/database.travis-ci.yml db/config/database.yml
- php bin/lazy build-conf -f db/config/database.yml
# - php bin/lazy db create -D=$DB
- php bin/lazy schema build -f
- php bin/lazy schema build LazyRecord\\Model\\MetadataSchema
- php bin/lazy schema build -f src # build meta model class
- php bin/lazy sql --rebuild -D=$DB
script:
- phpunit -c phpunit.xml.dist
after_success:
- php vendor/bin/coveralls -v
matrix:
fast_finish: true
allow_failures:
- php: hhvm
# matrix:
# exclude:
# - php: hhvm
# env: DB=pgsql DB_USER=postgres DB_NAME=postgres # driver currently unsupported by HHVM
# - php: hhvm
# env: DB=sqlite # some issues at the moment
cache:
apt: true
directories:
- vendor