|
@@ -21,7 +21,7 @@ install:
|
|
|
- pip install -U pytest-cov
|
|
- pip install -U pytest-cov
|
|
|
script:
|
|
script:
|
|
|
# Import of the database architecture
|
|
# Import of the database architecture
|
|
|
- - sudo mariadb < extra/myanimebot-init.sql
|
|
|
|
|
|
|
+ - sudo mariadb $DB_NAME < extra/myanimebot-init.sql
|
|
|
# Creation of the user for the application
|
|
# Creation of the user for the application
|
|
|
- sudo mariadb -e "CREATE USER IF NOT EXISTS '$DB_USER'@'$DB_HOST' IDENTIFIED BY '$DB_PASSWORD'; GRANT ALL PRIVILEGES ON $DB_NAME.* TO '$DB_USER'@'$DB_HOST'; FLUSH PRIVILEGES;"
|
|
- sudo mariadb -e "CREATE USER IF NOT EXISTS '$DB_USER'@'$DB_HOST' IDENTIFIED BY '$DB_PASSWORD'; GRANT ALL PRIVILEGES ON $DB_NAME.* TO '$DB_USER'@'$DB_HOST'; FLUSH PRIVILEGES;"
|
|
|
- mkdir "logs"
|
|
- mkdir "logs"
|