Skip to content
This repository was archived by the owner on Sep 5, 2017. It is now read-only.

Commit c51f0d1

Browse files
committed
👷 Travis caching
1 parent 3218582 commit c51f0d1

File tree

5 files changed

+10
-29
lines changed

5 files changed

+10
-29
lines changed

.env.testing

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ APP_ENV=testing
22
APP_KEY=base64:GIkaQ57IIVtTeTQOIh7eAFo1FAcoWkfwYPkfcOyusW4=
33

44
DB_CONNECTION=travis
5-
DB_TEST_USERNAME=root
6-
DB_TEST_PASSWORD=root
7-
DB_TEST_DATABASE=orgmanager_test
85

96
CACHE_DRIVER=array
107
SESSION_DRIVER=array

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Homestead.json
77
Homestead.yaml
88
.env
9+
.env.testing
910
.env.*
1011
!.env.example
1112
composer.lock

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ php:
44
- 7.0
55
- 7.1
66

7+
cache:
8+
directories:
9+
- vendor
10+
711
before_script:
812
- cp .env.testing .env
9-
- mysql -e 'create database travis;'
13+
- echo "USE mysql;\nUPDATE user SET password=PASSWORD('root') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root
14+
- mysql -e 'create database orgmanager_test;'
1015
- travis_retry composer self-update
1116
- travis_retry composer update --no-interaction --prefer-source
1217
- php artisan key:generate

config/database.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
'travis' => [
5858
'driver' => 'mysql',
5959
'host' => env('DB_TEST_HOST', 'localhost'),
60-
'database' => env('DB_TEST_DATABASE', 'travis'),
61-
'username' => env('DB_TEST_USERNAME', 'homestead'),
62-
'password' => env('DB_TEST_PASSWORD', 'secret'),
60+
'database' => env('DB_TEST_DATABASE', 'orgmanager_test'),
61+
'username' => env('DB_TEST_USERNAME', 'root'),
62+
'password' => env('DB_TEST_PASSWORD', 'root'),
6363
'charset' => 'utf8',
6464
'collation' => 'utf8_unicode_ci',
6565
'prefix' => '',

notes.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)