photoprism/.travis.yml
Michael Mayer 1f69530310 Don't build in Dockerfile #58
Caching of dependencies is not possible otherwise
2018-11-09 12:46:56 +01:00

28 lines
No EOL
674 B
YAML

sudo: required
cache:
directories:
- $HOME/.cache
before_cache:
- sudo chown -R travis:travis $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 all migrate test-codecov; fi
- if [ "$TRAVIS_BRANCH" != "develop" ]; then docker-compose -f docker-compose.travis.yml exec photoprism make all 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