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'