Skip to content
This repository was archived by the owner on Mar 24, 2024. It is now read-only.

Commit e02b25c

Browse files
committed
Tweak test stuff
1 parent e9cbbf0 commit e02b25c

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ cache:
2020
before_install:
2121
- mysql -e "CREATE DATABASE IF NOT EXISTS testing;"
2222
- mysql -e "GRANT ALL ON testing.* to 'homestead'@'%' IDENTIFIED BY 'secret';"
23-
- mysql --database testing < ci/sqlgrey.sql
23+
- mysql --database testing < tests/fixtures/sqlgrey.sql
2424
- . $HOME/.nvm/nvm.sh
2525
- nvm install stable
2626
- nvm use stable
2727
- npm install -g yarn
2828

2929
install:
30-
- cp -nv ci/.env.testing .env
30+
- cp -nv tests/fixtures/.env.testing .env
3131
- composer install --no-interaction
3232
- php artisan key:generate
3333
- php artisan migrate --force

ci/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ cd $(cd -P -- "$(dirname -- "$0")" && pwd -P)
44

55
. util.sh
66

7-
create_database
8-
97
cd ..
108

9+
create_database
10+
1111
copy_configuration
1212

1313
configure_application

ci/test_dusk.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ cd $(cd -P -- "$(dirname -- "$0")" && pwd -P)
44

55
. util.sh
66

7-
create_database
8-
97
cd ..
108

9+
create_database
10+
1111
copy_configuration
1212

1313
configure_application

ci/util.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ create_database() {
44
mysql -uroot -e "DROP DATABASE IF EXISTS testing"
55
mysql -uroot -e "CREATE DATABASE testing"
66
mysql -uroot -e "GRANT ALL ON testing.* to 'homestead'@'%';"
7-
mysql -uroot --database testing < sqlgrey.sql
7+
mysql -uroot --database testing < tests/fixtures/sqlgrey.sql
88
}
99

1010
copy_configuration() {
1111
cp -n .env .env.bak
12-
cp -v ci/.env.testing .env
12+
cp -v tests/fixtures/.env.testing .env
1313
}
1414

1515
configure_application() {

circle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ database:
1313
override:
1414
- mysql -uubuntu -e "CREATE DATABASE IF NOT EXISTS testing;"
1515
- mysql -uubuntu -e "GRANT ALL ON testing.* to 'homestead'@'%' IDENTIFIED BY 'secret';"
16-
- mysql -uubuntu --database testing < ci/sqlgrey.sql
16+
- mysql -uubuntu --database testing < tests/fixtures/sqlgrey.sql
1717

1818
general:
1919
artifacts:
@@ -29,7 +29,7 @@ test:
2929
pre:
3030
- "./vendor/laravel/dusk/bin/chromedriver-linux":
3131
background: true
32-
- cp ci/.env.testing .env
32+
- cp tests/fixtures/.env.testing .env
3333
- php artisan key:generate
3434
- php artisan migrate
3535
- php artisan passport:install
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)