Skip to content

Commit

Permalink
Update path database sql.
Browse files Browse the repository at this point in the history
  • Loading branch information
maurobonfietti committed Mar 30, 2019
1 parent 81e6970 commit 8fcd338
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Expand Up @@ -10,7 +10,7 @@ build:
project_setup:
before:
- mysql -e "CREATE DATABASE rest_api_slim_php"
- mysql rest_api_slim_php < app/data/database.sql
- mysql rest_api_slim_php < database/database.sql
override:
- php-scrutinizer-run
-
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -22,7 +22,7 @@ before_install:
- mysql -e 'CREATE DATABASE rest_api_slim_php;'

before_script:
- mysql rest_api_slim_php < app/data/database.sql
- mysql rest_api_slim_php < database/database.sql
- composer install
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -36,12 +36,12 @@ $ mysql -e 'CREATE DATABASE rest_api_slim_php;'

### 3- Create the structure and load test data into the database.

The database can be updated manually using the following file: [database.sql](app/data/database.sql).
The database can be updated manually using the following file: [database.sql](database/database.sql).

It can also be run from the command line:

```bash
$ mysql rest_api_slim_php < app/data/database.sql
$ mysql rest_api_slim_php < database/database.sql
```


Expand Down
4 changes: 2 additions & 2 deletions README_SPANISH.md
Expand Up @@ -37,12 +37,12 @@ $ mysql -e 'CREATE DATABASE rest_api_slim_php;'

### 3- Crear la estructura y cargar datos de prueba en la base de datos.

La base de datos se puede actualizar manualmente utilizando el siguiente archivo: [database.sql](app/data/database.sql).
La base de datos se puede actualizar manualmente utilizando el siguiente archivo: [database.sql](database/database.sql).

También se puede ejecutar desde la línea de comandos:

```bash
$ mysql rest_api_slim_php < app/data/database.sql
$ mysql rest_api_slim_php < database/database.sql
```


Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion extras/bin/restart-api.sh
Expand Up @@ -7,7 +7,7 @@ echo -e "Restarting demo database..."
mysql -u$DB_USERNAME -p$DB_PASSWORD -h$DB_HOSTNAME -e 'DROP DATABASE IF EXISTS $DB_DATABASE ; CREATE DATABASE $DB_DATABASE' 2> /dev/null

echo -e "Creating testing data..."
mysql -u$DB_USERNAME -p$DB_PASSWORD -h$DB_HOSTNAME $DB_DATABASE < app/data/database.sql 2> /dev/null
mysql -u$DB_USERNAME -p$DB_PASSWORD -h$DB_HOSTNAME $DB_DATABASE < database/database.sql 2> /dev/null

echo -e "Running unit tests..."
./vendor/bin/phpunit

0 comments on commit 8fcd338

Please sign in to comment.