.drone.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. kind: pipeline
  2. name: default
  3. steps:
  4. - name: test
  5. image: alpine:3.15.0
  6. commands:
  7. - apk update
  8. - apk add brotli-libs build-base freetype g++ gcc lcms2-dev libbsd libffi-dev libimagequant-dev libjpeg libjpeg-turbo-dev libmd libpng libwebp-dev libxau libxcb libxdmcp libxml2-dev make musl-dev openjpeg-dev py3-olefile py3-pillow py3-pip py3-sqlparse py3-virtualenv tiff tk-dev zlib-dev zstd-libs sassc
  9. - export LANG=es_ES.UTF-8 LANGUAGE=es_ES
  10. - pip install Django==2.2.16 django-cleanup==5.0.0
  11. - mkdir -p django/core/static/core/css || true
  12. - sassc -t compressed django/core/static/core/sass/estilos.sass django/core/static/core/css/estilos.min.css
  13. - cd django && cp -v personalsite/settings.py.example personalsite/settings.py
  14. - python3 manage.py makemigrations --no-input
  15. - python3 manage.py migrate --no-input
  16. - python3 manage.py collectstatic --no-input
  17. # - name: docker
  18. # image: plugins/docker
  19. # settings:
  20. # daemon_off: false
  21. # username:
  22. # from_secret: DOCKER_USER
  23. # password:
  24. # from_secret: DOCKER_PASS
  25. # repo:
  26. # from_secret: DOCKER_REPO
  27. # tags: latest
  28. # dockerfile: ./django/Dockerfile
  29. # context: ./django/
  30. # when:
  31. # branch: [master]
  32. # event: [push]