mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
864d69d968
* integrate test loading as task - use with gitpod * ignore test data with git
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
tasks:
|
|
- name: Setup django
|
|
before: |
|
|
export INVENTREE_DB_ENGINE='sqlite3'
|
|
export INVENTREE_DB_NAME='/workspace/InvenTree/dev/database.sqlite3'
|
|
export INVENTREE_MEDIA_ROOT='/workspace/InvenTree/inventree-data/media'
|
|
export INVENTREE_STATIC_ROOT='/workspace/InvenTree/dev/static'
|
|
export PIP_USER='no'
|
|
|
|
python3 -m venv venv
|
|
source venv/bin/activate
|
|
pip install invoke
|
|
mkdir dev
|
|
inv test-setup
|
|
gp sync-done start_server
|
|
|
|
- name: Start server
|
|
init: gp sync-await start_server
|
|
command: |
|
|
gp sync-await start_server
|
|
export INVENTREE_DB_ENGINE='sqlite3'
|
|
export INVENTREE_DB_NAME='/workspace/InvenTree/dev/database.sqlite3'
|
|
export INVENTREE_MEDIA_ROOT='/workspace/InvenTree/inventree-data/media'
|
|
export INVENTREE_STATIC_ROOT='/workspace/InvenTree/dev/static'
|
|
|
|
inv server
|
|
|
|
ports:
|
|
- port: 8000
|
|
onOpen: open-preview
|
|
|
|
github:
|
|
prebuilds:
|
|
master: true
|
|
pullRequests: false
|
|
pullRequestsFromForks: true
|
|
addBadge: true
|
|
addLabel: gitpod-ready
|
|
addCheck: false
|