Another Ham Radio Logbook -- Web, Multi-user multiple-logbook, with eQSL upload support
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.drone.yml 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. clone:
  2. git:
  3. image: plugins/git:1
  4. depth: 50
  5. tags: true
  6. pipeline:
  7. restore-cache:
  8. image: drillster/drone-volume-cache
  9. restore: true
  10. mount:
  11. - .cache
  12. volumes:
  13. - /tmp/cache:/cache
  14. build:
  15. image: python:3-alpine
  16. commands:
  17. - apk -U add gcc g++ make pkgconfig git postgresql-dev libffi libffi-dev python3-dev
  18. - pip install --upgrade pip setuptools
  19. - pip install --cache-dir=.cache flake8
  20. - pip install --cache-dir=.cache black
  21. - pip install --cache-dir=.cache cython
  22. - pip install --cache-dir=.cache -r requirements.txt
  23. - python setup.py install
  24. - black --check .
  25. - flake8 .
  26. - cp tests/config_tests.py config.py
  27. - python setup.py test
  28. migrations:
  29. image: python:3-alpine
  30. commands:
  31. - apk -U add gcc g++ make pkgconfig git postgresql-dev libffi libffi-dev python3-dev postgresql-client
  32. - pip install --upgrade pip setuptools
  33. - pip install --cache-dir=.cache flake8
  34. - pip install --cache-dir=.cache black
  35. - pip install --cache-dir=.cache cython
  36. - pip install --cache-dir=.cache -r requirements.txt
  37. - python setup.py install
  38. - psql -U postgres -h database -w -c 'CREATE DATABASE ahrl'
  39. - cp config.py.sample config.py
  40. - flask db upgrade
  41. rebuild-cache:
  42. image: drillster/drone-volume-cache
  43. rebuild: true
  44. mount:
  45. - .cache
  46. volumes:
  47. - /tmp/cache:/cache
  48. notify:
  49. image: plugins/slack
  50. channel: gitea
  51. secrets:
  52. - SLACK_WEBHOOK
  53. when:
  54. event: [ push, tag, pull_request ]
  55. status: [ changed, failure, success ]
  56. services:
  57. database:
  58. image: postgres
  59. environment:
  60. - POSTGRES_USER=postgres
  61. - POSTGRES_DB=ahrl_test