forked from luyadev/luya
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (28 loc) · 896 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
33
34
35
language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
- hhvm
- nightly
matrix:
allow_failures:
- php: 5.6
- php: 7.2
- 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-RC4.sql
- if [[ "$TRAVIS_PHP_VERSION" == "7.0" ]]; 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" == "7.0" ]]; then travis_retry php vendor/bin/coveralls -v; fi