Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Зуев Егор
/
wiki.dev
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Dan Brown
2017-02-26 21:39:15 +0000
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
e3eefba745dda9cfb995ba70090e499c953adddd
e3eefba7
1 parent
a90f5649
Fixed export testing and updated travis settings
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
9 deletions
.travis.yml
config/database.php
resources/views/books/export.blade.php
resources/views/chapters/export.blade.php
resources/views/pages/export.blade.php
.travis.yml
View file @
e3eefba
dist
:
trusty
sudo
:
required
sudo
:
false
language
:
php
php
:
-
7.0
...
...
@@ -8,15 +8,11 @@ cache:
directories
:
-
$HOME/.composer/cache
addons
:
apt
:
packages
:
-
mysql-server-5.6
-
mysql-client-core-5.6
-
mysql-client-5.6
before_script
:
-
mysql -u root -e 'create database `bookstack-test`;'
-
mysql -u root -e "CREATE USER 'bookstack-test'@'localhost' IDENTIFIED BY 'bookstack-test';"
-
mysql -u root -e "GRANT ALL ON \`bookstack-test\`.* TO 'bookstack-test'@'localhost';"
-
mysql -u root -e "FLUSH PRIVILEGES;"
-
phpenv config-rm xdebug.ini
-
composer dump-autoload --no-interaction
-
composer install --prefer-dist --no-interaction
...
...
@@ -25,5 +21,8 @@ before_script:
-
php artisan migrate --force -n --database=mysql_testing
-
php artisan db:seed --force -n --class=DummyContentSeeder --database=mysql_testing
after_failure
:
-
cat storage/logs/laravel.log
script
:
-
phpunit
\ No newline at end of file
...
...
config/database.php
View file @
e3eefba
...
...
@@ -82,7 +82,7 @@ return [
'mysql_testing'
=>
[
'driver'
=>
'mysql'
,
'host'
=>
'
localhost
'
,
'host'
=>
'
127.0.0.1
'
,
'database'
=>
'bookstack-test'
,
'username'
=>
env
(
'MYSQL_USER'
,
'bookstack-test'
),
'password'
=>
env
(
'MYSQL_PASSWORD'
,
'bookstack-test'
),
...
...
resources/views/books/export.blade.php
View file @
e3eefba
...
...
@@ -5,7 +5,9 @@
<title>
{{ $book->name }}
</title>
<style>
@if
(
!
app
()
-
>
environment
(
'testing'
))
{
!!
file_get_contents
(
public_path
(
'/css/export-styles.css'
))
!!
}
@endif
.
page-break
{
page-break-after
:
always
;
}
...
...
resources/views/chapters/export.blade.php
View file @
e3eefba
...
...
@@ -5,7 +5,9 @@
<title>
{{ $chapter->name }}
</title>
<style>
@if
(
!
app
()
-
>
environment
(
'testing'
))
{
!!
file_get_contents
(
public_path
(
'/css/export-styles.css'
))
!!
}
@endif
.
page-break
{
page-break-after
:
always
;
}
...
...
resources/views/pages/export.blade.php
View file @
e3eefba
...
...
@@ -5,7 +5,9 @@
<title>
{{ $page->name }}
</title>
<style>
@if
(
!
app
()
-
>
environment
(
'testing'
))
{
!!
file_get_contents
(
public_path
(
'/css/export-styles.css'
))
!!
}
@endif
</style>
@yield('head')
</head>
...
...
Please
register
or
sign in
to post a comment