Skip to content

Commit 0894881

Browse files
committed
Rename travis
1 parent f781da7 commit 0894881

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.travis.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
language: php
2+
3+
dist: trusty
4+
5+
env:
6+
global:
7+
- COMPOSER_ROOT_VERSION=4.0.x-dev
8+
9+
matrix:
10+
include:
11+
- php: 7.1
12+
env: DB=MYSQL PHPUNIT_TEST=1
13+
- php: 7.2
14+
env: DB=MYSQL PHPUNIT_TEST=1
15+
16+
before_script:
17+
# Init PHP
18+
- phpenv rehash
19+
- phpenv config-rm xdebug.ini
20+
21+
# Install composer dependencies
22+
- composer validate
23+
- composer require --no-update silverstripe/recipe-core:1.0.x-dev
24+
- if [[ $DB == PGSQL ]]; then composer require --no-update silverstripe/postgresql:2.0.x-dev; fi
25+
- composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile
26+
27+
script:
28+
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit; fi
29+
- if [[ $PHPUNIT_COVERAGE_TEST ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml; fi
30+
- if [[ $PHPCS_TEST ]]; then vendor/bin/phpcs --standard=vendor/silverstripe/framework/phpcs.xml.dist src/ tests/; fi

0 commit comments

Comments
 (0)