mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
911727f7b7
- Can't assume that pk values will be assigned sensibly! - Need to hard-code them in
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
dist: xenial
|
|
|
|
services:
|
|
- mysql
|
|
- postgresql
|
|
|
|
language: python
|
|
python:
|
|
- 3.6
|
|
- 3.7
|
|
|
|
addons:
|
|
apt-packages:
|
|
- sqlite3
|
|
|
|
before_install:
|
|
- sudo apt-get update
|
|
- sudo apt-get install gettext
|
|
- sudo apt-get install mysql-server libmysqlclient-dev
|
|
- sudo apt-get install libpq-dev
|
|
- pip3 install invoke
|
|
- pip3 install mysqlclient
|
|
- pip3 install psycopg2
|
|
- 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 DATABASE inventree_test_db;'
|
|
|
|
script:
|
|
- cd InvenTree && python3 manage.py makemigrations && cd ..
|
|
- python3 ci/check_migration_files.py
|
|
- invoke coverage
|
|
- cd InvenTree && python3 manage.py test --settings=InvenTree.ci_mysql && cd ..
|
|
- cd InvenTree && python3 manage.py test --settings=InvenTree.ci_postgresql && cd ..
|
|
- invoke translate
|
|
- invoke style
|
|
|
|
after_success:
|
|
- coveralls |