summaryrefslogtreecommitdiffstats
path: root/.drone.yml
diff options
context:
space:
mode:
authorDashie <dashie@sigpipe.me>2018-08-21 14:20:41 +0200
committerDashie <dashie@sigpipe.me>2018-08-21 14:20:41 +0200
commitae6596cd35ef091036647bb2ec0016436be28c2e (patch)
treeec040e96be3d3b8526c709ab3629a23f84c14cb7 /.drone.yml
parente1a64201e1f1532c7de0d723a44ae52c261872fe (diff)
try to fix the CI and migration
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index dc0d6e59..ce65a74e 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -28,6 +28,20 @@ pipeline:
- flake8 .
- python setup.py test
+ migrations:
+ image: python:3-alpine
+ commands:
+ - apk -U add sox sox-dev taglib taglib-dev libmagic file-dev libffi libffi-dev
+ - apk add cmake gcc g++ make pkgconfig git boost-dev gd-dev libmad-dev libsndfile-dev libid3tag-dev wget postgresql-dev
+ - pip install --upgrade pip setuptools
+ - pip install --cache-dir=/cache flake8
+ - pip install --cache-dir=/cache black
+ - pip install --cache-dir=/cache -r requirements.txt
+ - python setup.py install
+ - psql -U postgres -h database -w -c 'CREATE DATABASE reel2bits'
+ - cp config.py.sample config.py
+ - flask db migrate
+
rebuild-cache:
image: drillster/drone-volume-cache
rebuild: true