forked from hootlex/laravel-friendships
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (36 loc) · 1.43 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
language: php
services:
- mysql
php:
- 5.6
- 7.0
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
- cd -
script:
- vendor/bin/phpunit
after_script:
- vendor/bin/test-reporter