language: rust

services:
  - postgresql

addons:
  postgresql: "9.6"

before_script:
  - echo "BEFORE SCRIPT"
  - psql -c 'CREATE DATABASE aardwolf_testing;' -U postgres
  - if which diesel; then echo "diesel already installed"; else cargo install diesel_cli --no-default-features --features=postgres; fi
  - echo 'DATABASE_URL=postgres://postgres@localhost/aardwolf_testing' > .env
  - echo 'TEST_DATABASE_URL=postgres://postgres@localhost/aardwolf_testing' >> .env
  - pushd aardwolf-models
  - diesel migration run
  - DATABASE_URL=postgres://postgres@localhost/aardwolf_testing diesel migration run
  - popd

script:
  - echo "SCRIPT"
  - cargo build --all --verbose
  - cargo test --all --verbose

rust:
  - nightly

language: rust

services:
  - postgresql

addons:
  postgresql: "9.6"

before_script:
  - echo "BEFORE SCRIPT"
  - psql -c 'CREATE DATABASE aardwolf_testing;' -U postgres
  - if which diesel; then echo "diesel already installed"; else cargo install diesel_cli --no-default-features --features=postgres; fi
  - echo 'DATABASE_URL=postgres://postgres@localhost/aardwolf_testing' > .env
  - echo 'TEST_DATABASE_URL=postgres://postgres@localhost/aardwolf_testing' >> .env
  - pushd aardwolf-models
  - diesel migration run
  - popd

script:
  - echo "SCRIPT"
  - cargo build --all --verbose
  - cargo test --all --verbose

rust:
  - nightly

Revert "Also run test migrations"
Revert "Also run test migrations"

This reverts commit 43f05285c3d1b8b04ce8a2945596c6a25834ca60.
