-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
64 lines (56 loc) · 1.5 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
55
56
57
58
59
60
61
62
63
64
language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
env:
- LARAVEL_VERSION=5.4
- LARAVEL_VERSION=5.5
- LARAVEL_VERSION=5.6
- LARAVEL_VERSION=5.7
- LARAVEL_VERSION=5.8
- LARAVEL_VERSION=6.0
directories:
- $HOME/.composer/cache/files
cache:
directories:
- .autoconf
- $HOME/.m2
matrix:
fast_finish: true
exclude:
- php: 5.6
env: LARAVEL_VERSION=6.0
- php: 5.6
env: LARAVEL_VERSION=5.8
- php: 5.6
env: LARAVEL_VERSION=5.7
- php: 5.6
env: LARAVEL_VERSION=5.6
- php: 5.6
env: LARAVEL_VERSION=5.5
- php: 7.0
env: LARAVEL_VERSION=6.0
- php: 7.0
env: LARAVEL_VERSION=5.8
- php: 7.0
env: LARAVEL_VERSION=5.7
- php: 7.0
env: LARAVEL_VERSION=5.6
- php: 7.1
env: LARAVEL_VERSION=6.0
before_script:
- travis_retry composer self-update
- if [ "$LARAVEL_VERSION" != "" ]; then composer create-project "laravel/laravel:${LARAVEL_VERSION}.*"; fi;
- cd ./laravel
- composer require mdaliyan/farsi-request dev-master
- sed -i "s/protected \$middleware = \[/protected \$middleware = \[\n\t\t\\\\Mdaliyan\\\\FarsiRequest\\\\Middleware\\\\ReplaceArabicCharacters::class,/" ./app/Http/Kernel.php
- mkdir -p ./app/Http/Requests
- cp ./vendor/mdaliyan/farsi-request/tests/web.php ./routes
- cp ./vendor/mdaliyan/farsi-request/tests/TestRequest.php ./app/Http/Requests/
- cp ./vendor/mdaliyan/farsi-request/tests/FarsiRequestTest.php ./tests/Feature/
script:
- ./vendor/bin/phpunit