photoprism/.travis.yml

24 lines
No EOL
559 B
YAML

sudo: required
services:
- docker
before_script:
- docker-compose -f docker-compose.travis.yml up -d --build
script:
- docker-compose -f docker-compose.travis.yml exec photoprism make migrate test-coverage
after_script:
- docker cp $(docker-compose ps -q photoprism):/go/src/github.com/photoprism/photoprism/coverage.txt coverage.txt
- docker-compose -f docker-compose.travis.yml down
after_success:
- bash <(curl -s https://codecov.io/bash)
deploy:
provider: script
script: make docker-push
skip_cleanup: true
on:
branch: master