CI/CD working #3
10
.drone.yml
10
.drone.yml
|
|
@ -2,19 +2,23 @@ kind: pipeline
|
||||||
name: default
|
name: default
|
||||||
type: docker
|
type: docker
|
||||||
|
|
||||||
pipeline:
|
steps:
|
||||||
unittest:
|
- name: unitest
|
||||||
image: python
|
image: python
|
||||||
commands:
|
commands:
|
||||||
- pip install -r requirements_test.txt
|
- pip install -r requirements_test.txt
|
||||||
- ./scripts/drone/setup.sh
|
- ./scripts/drone/setup.sh
|
||||||
- ./scripts/drone/test.sh
|
- ./scripts/drone/test.sh
|
||||||
|
depends_on:
|
||||||
|
- clone
|
||||||
|
|
||||||
lint:
|
- name: lint
|
||||||
image: python
|
image: python
|
||||||
commands:
|
commands:
|
||||||
- pip install -r requirements_test.txt
|
- pip install -r requirements_test.txt
|
||||||
- ./scripts/drone/lint.sh
|
- ./scripts/drone/lint.sh
|
||||||
|
depends_on:
|
||||||
|
- clone
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ from rest_framework import status
|
||||||
from rest_framework.decorators import action
|
from rest_framework.decorators import action
|
||||||
from rest_framework.response import Response
|
from rest_framework.response import Response
|
||||||
from rest_framework.viewsets import ModelViewSet
|
from rest_framework.viewsets import ModelViewSet
|
||||||
from user.models import LockboxUser
|
|
||||||
|
|
||||||
|
# from user.models import LockboxUser
|
||||||
from storage.models import File, FileChunk
|
from storage.models import File, FileChunk
|
||||||
from storage.serializers import FileChunkSerializer, FileSerializer
|
from storage.serializers import FileChunkSerializer, FileSerializer
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue