Skip to content

Instantly share code, notes, and snippets.

@Hassanzadeh-sd
Created May 9, 2020 19:45
Show Gist options
  • Save Hassanzadeh-sd/dc184ef7ea21b67ac2cab020dbf3b55d to your computer and use it in GitHub Desktop.
Save Hassanzadeh-sd/dc184ef7ea21b67ac2cab020dbf3b55d to your computer and use it in GitHub Desktop.
django lint and test drone yaml file
kind: pipeline
name: wize_project_ci
type: docker
platform:
os: linux
arch: amd64
workspace:
path: /drone/app
clone:
disable: true
steps:
- name: clone
pull: never
image: alpine/git:latest
commands:
- git clone http://213.233.176.190:6121/s.hassanzadeh/developing_on_container.git .
- git checkout $DRONE_COMMIT
- name: test
pull: never
image: wize_python_slim:dev
commands:
- sleep 5
- pip install -r requirements.txt
- python manage.py test
- name: lint
pull: never
image: wize_python_slim:dev
commands:
- sleep 5
- pip install -r requirements.txt
- flake8
depends_on:
- test
trigger:
branch:
- master
event:
- push
- pull_request
- tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment