2021-10-29 16:05:25 +00:00
|
|
|
tasks:
|
|
|
|
- name: Setup django
|
2021-10-29 16:23:27 +00:00
|
|
|
before: |
|
2021-10-29 16:05:25 +00:00
|
|
|
export INVENTREE_DB_ENGINE='sqlite3'
|
|
|
|
export INVENTREE_DB_NAME='/workspace/InvenTree/dev/database.sqlite3'
|
2021-10-29 16:23:27 +00:00
|
|
|
export INVENTREE_MEDIA_ROOT='/workspace/InvenTree/inventree-data/media'
|
2021-10-29 16:05:25 +00:00
|
|
|
export INVENTREE_STATIC_ROOT='/workspace/InvenTree/dev/static'
|
2022-10-16 13:09:31 +00:00
|
|
|
export INVENTREE_BACKUP_DIR='/workspace/InvenTree/dev/backup'
|
2021-10-29 16:05:25 +00:00
|
|
|
export PIP_USER='no'
|
|
|
|
|
2022-08-02 02:12:46 +00:00
|
|
|
sudo apt install -y gettext
|
2021-10-29 16:05:25 +00:00
|
|
|
python3 -m venv venv
|
|
|
|
source venv/bin/activate
|
2022-08-02 02:12:46 +00:00
|
|
|
pip install invoke pyyaml
|
2021-10-29 16:05:25 +00:00
|
|
|
mkdir dev
|
2022-08-02 02:12:46 +00:00
|
|
|
invoke update
|
|
|
|
invoke setup-test --ignore-update --path inventree-data
|
2022-07-21 01:41:42 +00:00
|
|
|
gp sync-done start_server
|
2021-10-29 16:05:25 +00:00
|
|
|
|
|
|
|
- name: Start server
|
2022-07-21 01:41:42 +00:00
|
|
|
init: gp sync-await start_server
|
2021-10-29 16:05:25 +00:00
|
|
|
command: |
|
2022-07-21 01:41:42 +00:00
|
|
|
gp sync-await start_server
|
2021-10-29 16:05:25 +00:00
|
|
|
export INVENTREE_DB_ENGINE='sqlite3'
|
|
|
|
export INVENTREE_DB_NAME='/workspace/InvenTree/dev/database.sqlite3'
|
2021-10-29 16:23:27 +00:00
|
|
|
export INVENTREE_MEDIA_ROOT='/workspace/InvenTree/inventree-data/media'
|
2021-10-29 16:05:25 +00:00
|
|
|
export INVENTREE_STATIC_ROOT='/workspace/InvenTree/dev/static'
|
2022-10-16 13:09:31 +00:00
|
|
|
export INVENTREE_BACKUP_DIR='/workspace/InvenTree/dev/backup'
|
2021-10-29 16:05:25 +00:00
|
|
|
|
2022-07-27 00:42:34 +00:00
|
|
|
source venv/bin/activate
|
2021-10-29 16:05:25 +00:00
|
|
|
inv server
|
|
|
|
|
|
|
|
ports:
|
|
|
|
- port: 8000
|
|
|
|
onOpen: open-preview
|
|
|
|
|
|
|
|
github:
|
|
|
|
prebuilds:
|
|
|
|
master: true
|
|
|
|
pullRequests: false
|
|
|
|
pullRequestsFromForks: true
|
|
|
|
addBadge: true
|
|
|
|
addLabel: gitpod-ready
|
2021-10-29 16:23:27 +00:00
|
|
|
addCheck: false
|