ci update
parent
d3cc0a5044
commit
8b1cacc48c
15
.travis.yml
15
.travis.yml
|
|
@ -13,6 +13,7 @@ env: TARGET=x86_64-unknown-linux-gnu
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
|
- name: clippy
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
# TODO These are all the build jobs. Adjust as necessary. Comment out what you
|
# TODO These are all the build jobs. Adjust as necessary. Comment out what you
|
||||||
# don't need
|
# don't need
|
||||||
|
|
@ -44,15 +45,13 @@ matrix:
|
||||||
before_script: rustup target add $TARGET
|
before_script: rustup target add $TARGET
|
||||||
script: cargo check --verbose --target $TARGET
|
script: cargo check --verbose --target $TARGET
|
||||||
|
|
||||||
- name: "clippy und fmt"
|
- name: "fmt"
|
||||||
rust: stable
|
rust: stable
|
||||||
env: RUN=FMT
|
env: RUN=FMT
|
||||||
before_script:
|
before_script:
|
||||||
- rustup component add clippy-preview
|
- rustup component add rustfmt
|
||||||
- rustup component add rustfmt-preview
|
|
||||||
script:
|
script:
|
||||||
- cargo fmt --all -- --check
|
- cargo fmt --all -- --check
|
||||||
- cargo clippy --all-targets --all-features -- -D warnings -A clippy::new_ret_no_self
|
|
||||||
- cargo doc --all-features --release
|
- cargo doc --all-features --release
|
||||||
- cd examples/epd4in2_full && cargo fmt --all -- --check && cd ../../
|
- cd examples/epd4in2_full && cargo fmt --all -- --check && cd ../../
|
||||||
- cd examples/epd2in9_full && cargo fmt --all -- --check && cd ../../
|
- cd examples/epd2in9_full && cargo fmt --all -- --check && cd ../../
|
||||||
|
|
@ -60,6 +59,14 @@ matrix:
|
||||||
- cd examples/epd1in54_no_graphics && cargo fmt --all -- --check && cd ../../
|
- cd examples/epd1in54_no_graphics && cargo fmt --all -- --check && cd ../../
|
||||||
- cd examples/epd4in2_var_display_buffer && cargo fmt --all -- --check && cd ../../
|
- cd examples/epd4in2_var_display_buffer && cargo fmt --all -- --check && cd ../../
|
||||||
- cd examples/epd4in2_full_blue_pill && cargo fmt --all -- --check && cd ../../
|
- cd examples/epd4in2_full_blue_pill && cargo fmt --all -- --check && cd ../../
|
||||||
|
- name: "clippy"
|
||||||
|
rust: stable
|
||||||
|
env: RUN=FMT
|
||||||
|
before_script:
|
||||||
|
- rustup component add clippy
|
||||||
|
script:
|
||||||
|
- cargo clippy --all-targets --all-features -- -D warnings -A clippy::new_ret_no_self
|
||||||
|
|
||||||
- name: "check examples"
|
- name: "check examples"
|
||||||
rust: stable
|
rust: stable
|
||||||
before_script:
|
before_script:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue