Added rustfmt check to Jenkins build, and moved to top of Travis build.

This commit is contained in:
Luke Anderson 2019-03-12 19:45:58 +11:00
parent 3cf2359244
commit 08f15517f2
No known key found for this signature in database
GPG Key ID: 44408169EC61E228
2 changed files with 6 additions and 1 deletions

View File

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

5
Jenkinsfile vendored
View File

@ -6,6 +6,11 @@ pipeline {
}
}
stages {
stage('Check') {
steps {
sh 'cargo fmt --all -- --check'
}
}
stage('Build') {
steps {
sh 'cargo build'