forked from bolt/bolt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (45 loc) · 1.22 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
52
53
54
language: php
php:
- 7.1
- 7.2
- nightly
matrix:
fast_finish: true
allow_failures:
- php: nightly
sudo: false
services:
- mysql
- postgresql
addons:
postgresql: "9.3"
before_script:
# Set up Composer
- composer self-update || true
- composer global require hirak/prestissimo:~0.3
- composer install --prefer-dist
script:
## Default install tests
# PHPUnit
- |
export PHPUNIT_CMD="php -d memory_limit=2G ./vendor/bin/phpunit"
if [[ $TRAVIS_EVENT_TYPE == "cron" && $TRAVIS_PHP_VERSION =~ ^7 ]] ; then
composer require codeclimate/php-test-reporter:dev-master@dev
$PHPUNIT_CMD --coverage-text --coverage-clover .coverage/clover/clover.xml --coverage-html .coverage/html/
./vendor/bin/test-reporter --coverage-report .coverage/clover/clover.xml
else
$PHPUNIT_CMD
fi
# Database platform
- ./tests/scripts/dbsetup.sh
- $PHPUNIT_CMD tests/phpunit/database/
# Codeception
- ./vendor/codeception/codeception/codecept build -vvv > /dev/null
- ./vendor/codeception/codeception/codecept run --ext DotReporter
# Deprecation checks
- ./tests/scripts/deprecation-check.sh
# Cache directories
cache:
directories:
- $HOME/.composer/cache/files
dist: trusty