Merge pull request #294 from sigp/ci-rustfmt

rustfmt & clippy in CI builds
This commit is contained in:
Paul Hauner 2019-04-02 13:11:05 +11:00 committed by GitHub
commit 75f1d38969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

View File

@ -12,6 +12,8 @@ script:
- cargo test --verbose --all
- cargo test --verbose --release --all
- cargo fmt --all -- --check
# No clippy until later...
#- cargo clippy
rust:
- stable
- beta
@ -22,3 +24,4 @@ matrix:
fast_finish: true
install:
- rustup component add rustfmt
- rustup component add clippy

View File

@ -15,3 +15,7 @@ RUN git clone https://github.com/google/protobuf.git && \
RUN mkdir /cargocache && chmod -R ugo+rwX /cargocache
ENV CARGO_HOME /cargocache
RUN rustup component add rustfmt clippy

7
Jenkinsfile vendored
View File

@ -12,6 +12,13 @@ pipeline {
sh 'cargo build --verbose --all --release'
}
}
stage('Check') {
steps {
sh 'cargo fmt --all -- --check'
// No clippy until later...
//sh 'cargo clippy'
}
}
stage('Test') {
steps {
sh 'cargo test --verbose --all'