forked from luyadev/luya
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (25 loc) · 850 Bytes
/
.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
language: php
php:
- 5.6
- 7.0
- 7.1
- hhvm
- nightly
matrix:
allow_failures:
- php: hhvm
- php: nightly
sudo: false
install:
- travis_retry composer self-update && composer --version
- travis_retry composer global require "fxp/composer-asset-plugin:~1.3"
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- travis_retry composer install --prefer-dist --no-interaction
before_script:
- mysql -e 'create database myapp_test;'
- mysql -u root myapp_test < tests/data/sql/1.0.0-RC3.sql
- if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover build/logs/clover.xml"; fi
script:
- vendor/bin/phpunit --verbose $PHPUNIT_FLAGS --configuration travis.phpunit.xml
after_script:
- if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then travis_retry php vendor/bin/coveralls -v; fi