forked from torchbox/django-pattern-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
39 lines (35 loc) · 1.1 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Commands to start on workspace startup
ports:
# when port 8000 becomes available open a browser preview
# of the running django pattern library instance
- port: 8000
onOpen: open-preview
tasks:
# initialise and install the python part of the app by installing poetry
# and the python dependencies
- init: |
pip install "poetry>=1.1.12,<2"
poetry install
gp sync-done python
# Start the server for testing
command: poetry run django-admin runserver --settings=tests.settings.dev --pythonpath=.
name: Runserver
# install the node part of the app by installing the required
# node version and npm dependencies
- init: |
nvm install
npm install
# Build the assets
command: npm run start
name: Node
openMode: split-right
# when the python part of the app is ready...
- init: |
echo "Waiting for python..."
gp sync-await python
# run the tests
command: |
poetry run ./runtests.py
poetry run django-admin render_patterns --settings=tests.settings.dev --pythonpath=.
name: Tests
openMode: split-right