Add migration test in drone #585
14
.drone1.yml
14
.drone1.yml
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue