2019-04-06 14:54:45 +00:00
|
|
|
language: rust
|
|
|
|
rust:
|
|
|
|
- stable
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- rust: nightly
|
|
|
|
fast_finish: true
|
|
|
|
cache: cargo
|
2019-04-06 15:27:35 +00: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-11-19 23:54:00 +00:00
|
|
|
- cargo install --force diesel_cli --no-default-features --features postgres
|
2019-04-06 15:40:32 +00:00
|
|
|
before_install:
|
2019-04-06 14:57:24 +00:00
|
|
|
- cd server
|
2019-04-06 15:40:32 +00:00
|
|
|
script:
|
2019-08-24 03:05:34 +00:00
|
|
|
- diesel migration run
|
2019-11-19 23:54:00 +00:00
|
|
|
- cargo build
|
|
|
|
- cargo test
|
2019-04-06 16:03:55 +00:00
|
|
|
env:
|
2019-04-06 16:46:31 +00:00
|
|
|
- DATABASE_URL=postgres://rrr:rrr@localhost/rrr
|
2019-04-06 16:25:18 +00:00
|
|
|
addons:
|
2019-04-06 17:01:02 +00:00
|
|
|
postgresql: "9.4"
|