summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 5dd835dfe258e7a339bd02a40fe3b627ccb60461 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
language: rust
rust:
  - stable
matrix:
  allow_failures:
    - rust: nightly
  fast_finish: true
cache: cargo
before_script:
  - psql -c "create user rrr with password 'rrr' superuser;" -U postgres
  - psql -c 'create database rrr with owner rrr;' -U postgres
  - cargo install --force diesel_cli --no-default-features --features postgres
before_install:
  - cd server
script:
  - diesel migration run
  - cargo build
  - cargo test
env:
  - DATABASE_URL=postgres://rrr:rrr@localhost/rrr
addons:
  postgresql: "9.4"