Skip to content

Commit

Permalink
Change Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
afonso360 committed Apr 30, 2017
1 parent d39e683 commit 8424983
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,26 @@ for (int i = 0; i < names.size(); i++) {
def nodeName = names[i];
branches["node(" + nodeName + ")"] = {
node(nodeName) {
stage('Checkout') {
checkout scm;
}
stage('Version') {
sh 'rustc --version';
sh 'cargo --version';
}
stage('Build') {
sh 'cargo build --verbose';
}
stage('Test') {
sh 'cargo test --verbose';
}
stage('Bench') {
sh 'cargo bench --verbose';
}
stage('Doc') {
sh 'cargo doc --verbose';
withEnv(["CARGO_FLAGS=--features graphviz"]) {
stage('Checkout') {
checkout scm;
}
stage('Version') {
sh 'rustc --version';
sh 'cargo --version';
}
stage('Build') {
sh 'cargo build --verbose $CARGO_FLAGS';
}
stage('Test') {
sh 'cargo test --verbose $CARGO_FLAGS';
}
stage('Bench') {
sh 'cargo bench --verbose $CARGO_FLAGS';
}
stage('Doc') {
sh 'cargo doc --verbose $CARGO_FLAGS';
}
}
}
}
Expand Down

0 comments on commit 8424983

Please sign in to comment.