]> BookStack Code Mirror - bookstack/blob - .travis.yml
Removed old str_random functions from seeders
[bookstack] / .travis.yml
1 dist: bionic
2 language: php
3 php:
4   - '7.2'
5   - '7.3'
6
7 services:
8   - mysql
9
10 cache:
11   directories:
12     - $HOME/.composer/cache
13
14 before_script:
15   - mysql -u root -e 'create database `bookstack-test`;'
16   - mysql -u root -e "CREATE USER 'bookstack-test'@'localhost' IDENTIFIED BY 'bookstack-test';"
17   - mysql -u root -e "GRANT ALL ON \`bookstack-test\`.* TO 'bookstack-test'@'localhost';"
18   - mysql -u root -e "FLUSH PRIVILEGES;"
19   - phpenv config-rm xdebug.ini
20   - composer install --prefer-dist --no-interaction
21   - php artisan clear-compiled -n
22   - php artisan optimize -n
23   - php artisan migrate --force -n --database=mysql_testing
24   - php artisan db:seed --force -n --class=DummyContentSeeder --database=mysql_testing
25
26 script: vendor/bin/phpunit --configuration phpunit.xml
27
28 after_failure:
29   - cat storage/logs/laravel.log