language: rust
services:
- postgresql
before_script:
- echo "DATABASE_URL='postgres://localhost/rphotos'" > .env
- cargo install -v diesel_cli --no-default-features --features postgres
- diesel setup
- diesel migration run