mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-02-22 20:52:27 +00:00
update trybuild rust version and rustfmt
This commit is contained in:
parent
1bd398c7ee
commit
3b95b9f495
2 changed files with 9 additions and 4 deletions
|
@ -59,7 +59,7 @@ test-tarpaulin:
|
||||||
|
|
||||||
test-trybuild-ui:
|
test-trybuild-ui:
|
||||||
stage: test
|
stage: test
|
||||||
image: rust:1.49-slim
|
image: rust:1.50-slim
|
||||||
before_script:
|
before_script:
|
||||||
- apt update -y
|
- apt update -y
|
||||||
- apt install -y --no-install-recommends libpq-dev
|
- apt install -y --no-install-recommends libpq-dev
|
||||||
|
@ -67,7 +67,7 @@ test-trybuild-ui:
|
||||||
script:
|
script:
|
||||||
- cargo test --no-default-features --features full --tests -- --ignored
|
- cargo test --no-default-features --features full --tests -- --ignored
|
||||||
cache:
|
cache:
|
||||||
key: cargo-1-49-all
|
key: cargo-1-50-all
|
||||||
paths:
|
paths:
|
||||||
- cargo/
|
- cargo/
|
||||||
- target/
|
- target/
|
||||||
|
@ -81,8 +81,13 @@ readme:
|
||||||
|
|
||||||
rustfmt:
|
rustfmt:
|
||||||
stage: test
|
stage: test
|
||||||
image: iamsauravsharma/rust-fmt:nightly-alpine
|
image:
|
||||||
|
name: alpine:3.13
|
||||||
before_script:
|
before_script:
|
||||||
|
- apk add rustup
|
||||||
|
- rustup-init -qy --default-host x86_64-unknown-linux-musl --default-toolchain none </dev/null
|
||||||
|
- source $CARGO_HOME/env
|
||||||
|
- rustup toolchain install nightly --profile minimal --component rustfmt
|
||||||
- cargo -V
|
- cargo -V
|
||||||
- cargo fmt --version
|
- cargo fmt --version
|
||||||
script:
|
script:
|
||||||
|
|
|
@ -13,7 +13,7 @@ trailing_comma = "Never"
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
format_code_in_doc_comments = true
|
format_code_in_doc_comments = true
|
||||||
merge_imports = true
|
imports_granularity = "Crate"
|
||||||
overflow_delimited_expr = true
|
overflow_delimited_expr = true
|
||||||
use_field_init_shorthand = true
|
use_field_init_shorthand = true
|
||||||
use_try_shorthand = true
|
use_try_shorthand = true
|
||||||
|
|
Loading…
Add table
Reference in a new issue