Skip to content

Commit

Permalink
update jenkins to add tarpaulin and a config file.
Browse files Browse the repository at this point in the history
  • Loading branch information
firefox7025 committed Dec 28, 2020
1 parent 1b38aef commit 6285cf4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .tarpaulin.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[feature_a_coverage]
features = "feature_a"

[feature_a_and_b_coverage]
features = "feature_a feature_b"
release = true

[report]
coveralls = "coveralls_key"
out = ["Html", "Xml"]
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ pipeline {
steps {
checkout scm
container('rust') {
sh 'cargo build --with-coverage --release'
sh 'cargo install cargo-tarpaulin'
sh 'cargo build'
withCredentials([string(credentialsId: 'alpaca_secret_key', variable: 'alpaca_secret_key')]) {
withCredentials([string(credentialsId: 'alpaca_access_key', variable: 'alpaca_access_key')]) {
sh 'cargo test'
Expand Down

0 comments on commit 6285cf4

Please sign in to comment.