2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 10:05:39 +00:00

Add CI tests for MySQL database

This commit is contained in:
Oliver Walters
2020-09-01 21:01:38 +10:00
parent c3c5a86ea5
commit 55c1ea750c
3 changed files with 47 additions and 4 deletions

View File

@ -1,5 +1,9 @@
dist: xenial
services:
- mysql
- postgresql
language: python
python:
- 3.6
@ -16,11 +20,14 @@ before_install:
- invoke install
- invoke migrate
- cd InvenTree && python3 manage.py createsuperuser --username InvenTreeAdmin --email admin@inventree.com --noinput && cd ..
- psql -c 'create database inventree_test_db;' -U postgres
- mysql -e `CREATE DATABSE inventree_test_db;'
script:
- cd InvenTree && python3 manage.py makemigrations && cd ..
- python3 ci/check_migration_files.py
- invoke coverage
- invoke test --database=mysql
- invoke translate
- invoke style