mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Check rustfmt formatting in travis builds (#210)
* Install rustfmt * Check formatting in travis builds
This commit is contained in:
committed by
GitHub
parent
68921b625d
commit
9830f4ef48
@@ -5,6 +5,8 @@ rust:
|
||||
|
||||
cache: cargo
|
||||
|
||||
before_script: (cargo install rustfmt || true)
|
||||
|
||||
sudo: false
|
||||
|
||||
notifications:
|
||||
|
||||
@@ -5,6 +5,10 @@ set -e
|
||||
# build rust project
|
||||
make
|
||||
|
||||
# check formatting (rustfmt)
|
||||
PATH=~/.cargo/bin:$PATH
|
||||
cargo fmt -- --write-mode=diff
|
||||
|
||||
# clone hugo branch, which contains the blog template
|
||||
git clone --branch=hugo https://github.com/phil-opp/blog_os.git hugo
|
||||
cd hugo
|
||||
|
||||
Reference in New Issue
Block a user