mirror of
https://gitee.com/openharmony/third_party_rust_nom
synced 2024-11-23 07:29:54 +00:00
separate code format build and allow its failure
This commit is contained in:
parent
3a12f3ed1d
commit
8290517717
@ -34,12 +34,18 @@ matrix:
|
||||
env: FEATURES=''
|
||||
- rust: stable
|
||||
env: DOC_FEATURES='--features "std regexp regexp_macros" --no-default-features'
|
||||
before_script:
|
||||
- export PATH=$HOME/.cargo/bin:$PATH
|
||||
script:
|
||||
- eval cargo doc --verbose $DOC_FEATURES
|
||||
allow_failures:
|
||||
- rust: stable
|
||||
env: FEATURES=''
|
||||
before_script:
|
||||
- export PATH=$HOME/.cargo/bin:$PATH
|
||||
- rustup component add rustfmt-preview
|
||||
script:
|
||||
- eval cargo fmt -- --write-mode=diff
|
||||
- eval cargo doc --verbose $DOC_FEATURES
|
||||
|
||||
notifications:
|
||||
webhooks:
|
||||
|
Loading…
Reference in New Issue
Block a user