2015-11-26 19:30:19 +03:00
|
|
|
language: rust
|
2017-07-27 19:35:45 +04:00
|
|
|
rust:
|
2017-10-23 13:22:25 +04:00
|
|
|
- 1.19.0
|
2017-07-27 19:35:45 +04:00
|
|
|
- stable
|
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:
|
|
|
|
- export PATH="$PATH:$HOME/.cargo/bin"
|
2017-11-09 01:52:43 +04:00
|
|
|
- cargo install -f rustfmt-nightly
|
2017-11-09 00:17:42 +04:00
|
|
|
script:
|
|
|
|
- cargo fmt -- --write-mode=diff
|