Skip to content

Commit

Permalink
More travis fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Feb 5, 2015
1 parent 7f0e21d commit c255eda
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ env:
before_script:
- if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS snipeit_laravel;" -utravis; fi
- curl -s http://getcomposer.org/installer | php
- cp app/config/production/database.example.php app/config/database.php
- cp app/config/production/mail.example.php app/config/mail.php
- cp app/config/testing/database.example.php app/config/testing/database.php
- cp app/config/testing/mail.example.php app/config/testing/mail.php
- composer self-update
- composer install --dev --prefer-source --no-interaction
- composer install --prefer-source --no-interaction
- php artisan key:generate --env=testing
- php artisan migrate:install --env=testing --no-interaction -vvv
- php artisan migrate --package cartalyst/sentry --env=testing --no-interaction -vvv
Expand Down
14 changes: 13 additions & 1 deletion app/config/testing/database.example.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
|
*/

'default' => 'sqlite',
'default' => 'mysql',

/*
|--------------------------------------------------------------------------
Expand All @@ -50,6 +50,18 @@
'database' => ':memory:',
'prefix' => ''
),

'mysql' => array(
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'snipeit_laravel',
'username' => 'travis',
'password' => '',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
),

),

/*
Expand Down
2 changes: 1 addition & 1 deletion app/config/testing/mail.example.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,6 @@
|
*/

'pretend' => false,
'pretend' => true,

);

0 comments on commit c255eda

Please sign in to comment.