Skip to content

Commit b3b0f7c

Browse files
committed
Added travis ci config file
1 parent 0df77be commit b3b0f7c

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.travis.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
cache:
2+
directories:
3+
- $HOME/.composer/cache
4+
5+
language: php
6+
7+
matrix:
8+
include:
9+
- php: 7.2
10+
env: LARAVEL='5.8.*' TESTBENCH='3.8.*' COMPOSER_FLAGS='--prefer-lowest'
11+
- php: 7.2
12+
env: LARAVEL='5.8.*' TESTBENCH='3.8.*' COMPOSER_FLAGS='--prefer-stable'
13+
- php: 7.3
14+
env: LARAVEL='5.8.*' TESTBENCH='3.8.*' COMPOSER_FLAGS='--prefer-lowest'
15+
- php: 7.3
16+
env: LARAVEL='5.8.*' TESTBENCH='3.8.*' COMPOSER_FLAGS='--prefer-stable'
17+
- php: 7.2
18+
env: LARAVEL='6.*' TESTBENCH='4.*' COMPOSER_FLAGS='--prefer-lowest'
19+
- php: 7.2
20+
env: LARAVEL='6.*' TESTBENCH='4.*' COMPOSER_FLAGS='--prefer-stable'
21+
- php: 7.3
22+
env: LARAVEL='6.*' TESTBENCH='4.*' COMPOSER_FLAGS='--prefer-lowest'
23+
- php: 7.3
24+
env: LARAVEL='6.*' TESTBENCH='4.*' COMPOSER_FLAGS='--prefer-stable'
25+
fast_finish: true
26+
27+
before_script:
28+
- composer config discard-changes true
29+
30+
before_install:
31+
- travis_retry composer self-update
32+
- travis_retry composer require "laravel/framework:${LARAVEL}" "orchestra/testbench:${TESTBENCH}" --no-interaction --no-update
33+
34+
install:
35+
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction --no-suggest
36+
37+
script:
38+
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

0 commit comments

Comments
 (0)