25 lines
No EOL
606 B
YAML
25 lines
No EOL
606 B
YAML
sudo: required
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.cache
|
|
|
|
services:
|
|
- docker
|
|
|
|
before_script:
|
|
- docker-compose -f docker-compose.travis.yml up -d --build
|
|
|
|
script:
|
|
- if [ "$TRAVIS_BRANCH" == "develop" ]; then docker-compose -f docker-compose.travis.yml exec photoprism make migrate test-codecov; fi
|
|
- if [ "$TRAVIS_BRANCH" != "develop" ]; then docker-compose -f docker-compose.travis.yml exec photoprism make migrate test; fi
|
|
|
|
after_script:
|
|
- docker-compose -f docker-compose.travis.yml down
|
|
|
|
deploy:
|
|
provider: script
|
|
script: make deploy-photoprism
|
|
skip_cleanup: true
|
|
on:
|
|
branch: master |