Skip to content

Coverage Report #157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ netlib = ["lapack-src/netlib", "blas-src/netlib"]
openblas = ["lapack-src/openblas", "blas-src/openblas"]
serde-1 = ["ndarray/serde-1", "num-complex/serde"]

openblas-static = ["openblas", "openblas-src"]
openblas-static = ["openblas", "openblas-src/static"]

[dependencies]
lapacke = "0.2"
Expand All @@ -44,7 +44,6 @@ default-features = false
[dependencies.openblas-src]
version = "0.6"
default-features = false
features = ["static"]
optional = true

[dev-dependencies]
Expand Down
27 changes: 27 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,30 @@ jobs:
displayName: install rustup on Windows
- script: cargo test -v --features=intel-mkl --no-default-features 2>&1
displayName: run test

- job: Coverage
pool:
vmImage: 'ubuntu-16.04'
steps:
- script: |
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
displayName: install rustup
- script: |
sudo apt-get update
sudo apt-get install -y gfortran libssl-dev pkg-config cmake zlib1g-dev liblzma-dev
displayName: apt install
- script: |
cargo install cargo-tarpaulin -f
displayName: install tarpauling
- script: |
cargo tarpaulin --features=intel-mkl --out Xml
curl -s https://codecov.io/bash -o .codecov && chmod +x .codecov
./.codecov -B "${BUILD_SOURCEBRANCHNAME:-}" \
-C "${BUILD_SOURCEVERSION:-}" \
-P "${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER:-}" \
-b "${BUILD_BUILDID:-}" \
-K -n "report name"
displayName: run tarpaulin
env:
CODECOV_TOKEN: $(myCodecovToken)
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
//! - [Random matrix generators](generate/index.html)
//! - [Scalar trait](types/trait.Scalar.html)

#[cfg(features = "openblas")]
extern crate openblas_src;

extern crate blas_src;
extern crate lapack_src;

Expand Down