forked from hootlex/laravel-friendships
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
executable file
·46 lines (37 loc) · 1.44 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
language: php
services:
- mysql
php:
- 7.2
- 7.3
- 7.4
addons:
code_climate:
repo_token: bb9681de04daca830a87c3eb0f6500b0a815f8262107fec833e0852df2401466
sudo: false
# cache vendor dirs
cache:
directories:
- vendor
- $HOME/.composer/cache
install:
- COMPOSER_DISCARD_CHANGES=1 composer install --dev --prefer-source --no-interaction
before_script:
- mysql -u root -e 'set global innodb_large_prefix=1;'
- mysql -u root -e 'set global innodb_file_format="Barracuda";'
- mysql -u root -e 'set global innodb_file_format_max="Barracuda";'
- mysql -u root -e 'set global innodb_file_per_table=true;'
- mysql -e 'create database friendships_test;'
- cp src/database/migrations/create_friendships_table.php vendor/laravel/laravel/database/migrations/2015_11_19_053825_create_friendships_table.php
- yes | cp src/database/migrations/create_friendships_groups_table.php vendor/laravel/laravel/database/migrations/2015_11_19_053826_create_friendships_groups_table.php
- yes | cp tests/config/friendships.php vendor/laravel/laravel/config/friendships.php
- yes | cp tests/Stub_User.php vendor/laravel/laravel/app/User.php
- cd vendor/laravel/laravel
- composer update --dev --prefer-source --no-interaction
- perl -pi -w -e "s/'engine' => null,/'engine' => 'InnoDB ROW_FORMAT=DYNAMIC',/g;" config/database.php
- php artisan migrate --force
- cd -
script:
- vendor/bin/phpunit
after_script:
- vendor/bin/test-reporter