Something something like soundcloud but not like soundcloud.
Log in, upload records, done.
Simple, easy, KISS.
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 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. ---
  2. kind: pipeline
  3. name: default
  4. platform:
  5. os: linux
  6. arch: amd64
  7. clone:
  8. depth: 50
  9. steps:
  10. - name: restore-cache
  11. pull: default
  12. image: drillster/drone-volume-cache
  13. settings:
  14. mount:
  15. - .cache
  16. restore: true
  17. volumes:
  18. - name: 2f746d702f6361636865
  19. path: /cache
  20. - name: build
  21. pull: default
  22. image: python:3-alpine
  23. commands:
  24. - apk -U add sox sox-dev taglib taglib-dev libmagic file-dev libffi libffi-dev
  25. - apk add cmake gcc g++ make pkgconfig git boost-dev gd-dev libmad-dev libsndfile-dev libid3tag-dev wget postgresql-dev
  26. - pip install --upgrade --cache-dir=.cache/pip pip setuptools
  27. - pip install --cache-dir=.cache/pip flake8
  28. - pip install --cache-dir=.cache/pip black
  29. - pip install --cache-dir=.cache/pip -r requirements.txt
  30. - python setup.py install
  31. - ./tests/install_audiowaveform.sh
  32. - black --check .
  33. - flake8 . --count --show-source --statistics
  34. - cp tests/config_test.py config.py
  35. - python setup.py test
  36. - name: front-lint-build
  37. pull: default
  38. image: node:10
  39. commands:
  40. - cd front
  41. - yarn
  42. - npm run lint
  43. - npm run build
  44. - name: migrations
  45. pull: default
  46. image: python:3-alpine
  47. commands:
  48. - apk -U add sox sox-dev taglib taglib-dev libmagic file-dev libffi libffi-dev postgresql-client
  49. - apk add cmake gcc g++ make pkgconfig git boost-dev gd-dev libmad-dev libsndfile-dev libid3tag-dev wget postgresql-dev
  50. - pip install --upgrade --cache-dir=.cache/pip pip setuptools
  51. - pip install --cache-dir=.cache/pip flake8
  52. - pip install --cache-dir=.cache/pip black
  53. - pip install --cache-dir=.cache/pip -r requirements.txt
  54. - python setup.py install
  55. - "psql -U postgres -h database -w -c 'CREATE DATABASE reel2bits'"
  56. - "psql -U postgres -h database -w -c 'CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";' reel2bits"
  57. - cp config.py.sample config.py
  58. - flask db upgrade
  59. - name: rebuild-cache
  60. pull: default
  61. image: drillster/drone-volume-cache
  62. settings:
  63. mount:
  64. - .cache
  65. rebuild: true
  66. volumes:
  67. - name: 2f746d702f6361636865
  68. path: /cache
  69. - name: publish-web
  70. pull: default
  71. image: plugins/docker
  72. settings:
  73. dockerfile: Dockerfile-web
  74. repo: dashie/reel2bits-web
  75. tags:
  76. - latest
  77. environment:
  78. DOCKER_PASSWORD:
  79. from_secret: DOCKER_PASSWORD
  80. DOCKER_USERNAME:
  81. from_secret: DOCKER_USERNAME
  82. when:
  83. branch:
  84. - master
  85. event:
  86. - push
  87. - tag
  88. - name: publish-worker
  89. pull: default
  90. image: plugins/docker
  91. settings:
  92. dockerfile: Dockerfile-worker
  93. repo: dashie/reel2bits-worker
  94. tags:
  95. - latest
  96. environment:
  97. DOCKER_PASSWORD:
  98. from_secret: DOCKER_PASSWORD
  99. DOCKER_USERNAME:
  100. from_secret: DOCKER_USERNAME
  101. when:
  102. branch:
  103. - master
  104. event:
  105. - push
  106. - tag
  107. - name: notify
  108. pull: default
  109. image: plugins/slack
  110. settings:
  111. channel: gitea
  112. environment:
  113. SLACK_WEBHOOK:
  114. from_secret: SLACK_WEBHOOK
  115. when:
  116. event:
  117. - push
  118. - tag
  119. - pull_request
  120. status:
  121. - changed
  122. - failure
  123. - success
  124. services:
  125. - name: database
  126. pull: default
  127. image: postgres
  128. environment:
  129. POSTGRES_DB: reel2bits_test
  130. POSTGRES_USER: postgres
  131. - name: redis
  132. pull: default
  133. image: redis
  134. volumes:
  135. - name: 2f746d702f6361636865
  136. host:
  137. path: /tmp/cache