Jenkins CI Setup #1

Merged
cameron merged 5 commits from feature/ci-setup into master 2020-06-17 18:19:39 +00:00

33
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,33 @@
pipeline {
agent {
docker { image 'rust:1.44.0-alpine' }
}
stages {
stage('setup') {
steps {
sh 'rustup component add clippy'
}
}
stage('build') {
steps {
sh 'cargo build --release'
}
}
stage('lint') {
steps {
sh 'cargo clippy -- -D warnings'
}
}
stage('test') {
steps {
sh 'cargo test'
}
}
}
post {
always {
archiveArtifacts artifacts: 'target/release/rack', fingerprint: true
}
}
}