From 08f15517f292e9f90f16cce3c022ca521f3204d1 Mon Sep 17 00:00:00 2001 From: Luke Anderson Date: Tue, 12 Mar 2019 19:45:58 +1100 Subject: [PATCH] Added rustfmt check to Jenkins build, and moved to top of Travis build. --- .travis.yml | 2 +- Jenkinsfile | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d43d21a00..d1d383670 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,9 +7,9 @@ before_install: - sudo chown $USER /usr/local/bin/protoc - sudo chown -R $USER /usr/local/include/google script: + - cargo fmt --all -- --check - cargo build --verbose --all - cargo test --verbose --all - - cargo fmt --all -- --check rust: - stable - beta diff --git a/Jenkinsfile b/Jenkinsfile index 42755d5f7..3377d4dc7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,6 +6,11 @@ pipeline { } } stages { + stage('Check') { + steps { + sh 'cargo fmt --all -- --check' + } + } stage('Build') { steps { sh 'cargo build'