2015-11-26 19:30:19 +03:00
|
|
|
language: rust
|
2017-07-27 19:35:45 +04:00
|
|
|
rust:
|
|
|
|
- stable
|
2018-01-04 03:31:23 +04:00
|
|
|
- beta
|
2016-09-23 18:16:11 +03:00
|
|
|
cache: cargo
|
2016-06-04 22:08:14 +03:00
|
|
|
services:
|
|
|
|
- postgresql
|
|
|
|
before_script:
|
2016-09-23 18:16:11 +03:00
|
|
|
- cargo update || true
|
2016-06-05 00:46:49 +03:00
|
|
|
- echo "DATABASE_URL=postgres://localhost/rphotos" > .env
|
2016-09-23 18:16:11 +03:00
|
|
|
- cargo install -v diesel_cli --no-default-features --features postgres || true
|
2016-06-05 01:57:38 +03:00
|
|
|
- $HOME/.cargo/bin/diesel setup
|
2017-11-09 00:17:42 +04:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- rust: nightly
|
|
|
|
env: TASK=rustfmt
|
|
|
|
before_script:
|
2018-01-26 00:14:46 +04:00
|
|
|
- rustup component add rustfmt-preview
|
2017-11-09 00:17:42 +04:00
|
|
|
script:
|
2018-07-06 01:28:57 +04:00
|
|
|
- cargo fmt -- --check
|