separate code format build and allow its failure

This commit is contained in:
Geoffroy Couprie 2018-05-02 14:45:13 +02:00
parent 3a12f3ed1d
commit 8290517717

View File

@ -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: