travisCI to python3.6 and add makemigrations call in dockerfile
This commit is contained in:
parent
77b49c11b6
commit
48b1054810
|
@ -1,6 +1,6 @@
|
||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
- "3.7"
|
- "3.6"
|
||||||
env:
|
env:
|
||||||
- DJANGO="Django>=2"
|
- DJANGO="Django>=2"
|
||||||
install:
|
install:
|
||||||
|
|
|
@ -11,6 +11,7 @@ RUN apk add --no-cache nsd build-base python3-dev libffi-dev openssl-dev libc-de
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
|
RUN ["python", "manage.py", "makemigrations", "binder"]
|
||||||
RUN ["python", "manage.py", "migrate"]
|
RUN ["python", "manage.py", "migrate"]
|
||||||
RUN ["python", "manage.py", "loaddata", "binder/fixtures/initial_data.json"]
|
RUN ["python", "manage.py", "loaddata", "binder/fixtures/initial_data.json"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue