Add migration test in drone #585

Merged
konrad merged 6 commits from feature/migration-test into master 2020-06-13 20:45:22 +00:00
1 changed files with 14 additions and 0 deletions
Showing only changes of commit 5ac7ac667d - Show all commits

View File

@ -63,6 +63,20 @@ steps:
when:
event: [ push, tag, pull_request ]
- name: test-migration
image: kolaente/toolbox:latest
pull: true
depends_on: [ build ]
commands:
# Get the latest version and run the migrations in it
- wget https://dl.vikunja.io/api/master/vikunja-master-linux-amd64-full.zip -O vikunja-latest.zip
- unzip vikunja-latest.zip
- ./vikunja-master-linux-amd64 migrate
# Run the migrations from the binary build in the step before
- ./vikunja migrate
when:
event: [ push, tag, pull_request ]
- name: test
image: vikunja/golang-build:latest
pull: true