ad2703a1d5
There is bogosity in the version numbers. An old rustfmt is 0.9.0, while the current rustfmt-nightly, released yesterday, is 0.2.5.
22 lines
509 B
YAML
22 lines
509 B
YAML
language: rust
|
|
rust:
|
|
- 1.19.0
|
|
- stable
|
|
cache: cargo
|
|
services:
|
|
- postgresql
|
|
before_script:
|
|
- cargo update || true
|
|
- echo "DATABASE_URL=postgres://localhost/rphotos" > .env
|
|
- cargo install -v diesel_cli --no-default-features --features postgres || true
|
|
- $HOME/.cargo/bin/diesel setup
|
|
matrix:
|
|
include:
|
|
- rust: nightly
|
|
env: TASK=rustfmt
|
|
before_script:
|
|
- export PATH="$PATH:$HOME/.cargo/bin"
|
|
- cargo install -f rustfmt-nightly
|
|
script:
|
|
- cargo fmt -- --write-mode=diff
|