Skip to content

Commit 0f197e9

Browse files
authored
Create .travis.yml
1 parent 8d6641b commit 0f197e9

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

.travis.yml

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
language: php
2+
3+
cache:
4+
directories:
5+
- $HOME/.cache/pip
6+
- $HOME/.composer/cache/files
7+
8+
# 7.0 for Laravel 5.5
9+
# 7.1.3 for Laravel 5.6 - 5.8
10+
# 7.2 for Laravel 6.x
11+
php:
12+
- 7.0.0
13+
- 7.1.3
14+
- 7.2.0
15+
16+
env:
17+
- TESTBENCH_VERSION=~3.5.0
18+
- TESTBENCH_VERSION=~3.6.0
19+
- TESTBENCH_VERSION=~3.7.0
20+
- TESTBENCH_VERSION=~3.8.0
21+
- TESTBENCH_VERSION=~4.0.0
22+
23+
matrix:
24+
exclude:
25+
- php: 7.0.0
26+
env: TESTBENCH_VERSION=~3.6.0
27+
- php: 7.0.0
28+
env: TESTBENCH_VERSION=~3.7.0
29+
- php: 7.0.0
30+
env: TESTBENCH_VERSION=~3.8.0
31+
- php: 7.0.0
32+
env: TESTBENCH_VERSION=~4.0.0
33+
- php: 7.1.3
34+
env: TESTBENCH_VERSION=~3.5.0
35+
- php: 7.1.3
36+
env: TESTBENCH_VERSION=~4.0.0
37+
- php: 7.2.0
38+
env: TESTBENCH_VERSION=~3.5.0
39+
- php: 7.2.0
40+
env: TESTBENCH_VERSION=~3.6.0
41+
- php: 7.2.0
42+
env: TESTBENCH_VERSION=~3.7.0
43+
- php: 7.2.0
44+
env: TESTBENCH_VERSION=~3.8.0
45+
46+
before_install:
47+
- cp ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ~/xdebug.ini
48+
- phpenv config-rm xdebug.ini
49+
- composer global require hirak/prestissimo --update-no-dev
50+
- composer require "orchestra/testbench:${TESTBENCH_VERSION}" --no-update --prefer-dist
51+
52+
install: travis_retry composer install --no-interaction --prefer-dist
53+
54+
before_script: phpenv config-add ~/xdebug.ini
55+
56+
script:
57+
- composer show
58+
- vendor/bin/phpunit -v
59+
60+
after_success:
61+
- php vendor/bin/php-coveralls
62+
63+
notifications:
64+
email: false

0 commit comments

Comments
 (0)