2019-04-06 07:54:45 -07:00
|
|
|
language: rust
|
|
|
|
rust:
|
|
|
|
- stable
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- rust: nightly
|
|
|
|
fast_finish: true
|
|
|
|
cache: cargo
|
2019-04-06 08:27:35 -07:00
|
|
|
before_script:
|
|
|
|
- psql -c "create user rrr with password 'rrr' superuser;" -U postgres
|
|
|
|
- psql -c 'create database rrr with owner rrr;' -U postgres
|
2019-04-06 08:40:32 -07:00
|
|
|
before_install:
|
2019-04-06 07:57:24 -07:00
|
|
|
- cd server
|
2019-04-06 08:40:32 -07:00
|
|
|
script:
|
2019-08-23 20:05:34 -07:00
|
|
|
- cargo install --force diesel_cli --no-default-features --features postgres
|
|
|
|
- diesel migration run
|
|
|
|
- cargo build --all
|
2019-04-06 08:32:34 -07:00
|
|
|
- cargo test --all
|
2019-04-06 09:03:55 -07:00
|
|
|
env:
|
2019-04-06 09:46:31 -07:00
|
|
|
- DATABASE_URL=postgres://rrr:rrr@localhost/rrr
|
2019-04-06 09:25:18 -07:00
|
|
|
addons:
|
2019-04-06 10:01:02 -07:00
|
|
|
postgresql: "9.4"
|