• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

shimming-toolbox / shimming-toolbox / 617
90%

Build:
DEFAULT BRANCH: master
Ran 29 Nov 2020 09:48PM UTC
Jobs 1
Files 29
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
617

push

travis-ci-com

GitHub
Check installation and versions of 3rd party binaries (#176)

* Add CLI to check 3rd-party binary installation

Resolves #161

**Why this change was necessary**
It's more useful to the user to have a separate script that they can
run to check their installation without running the visually
overwhelming testing suite.

**What this change does**
Creates 2 helper functions using the GNU `which` tool to verify that
the `prelude` and `dcm2niic` binaries are both installed and available
in the PATH. Since these helper functions only return the resulting
exit code of the `which` calls, a wrapper function is exposed as a
CLI, with informative text for a human user.

**Any side-effects?**
Note that this duplicates code in conftest.py, which will be
refactored in a subsequent commit to rely on the helper functions
added in this commit.

* Refactor conftest to use check_env helpers

Related to #161

**Why this change was necessary**
conftest.py had some functionality duplicated in check_env.py, so the
duplicated code was factored out.

**What this change does**
Refactors conftest dependency checks to rely on imported check_env.py.

**Any side-effects?**
conftest now depends on the check_env helper functions for verifying
the prelude and dcm2niix installations.

* Add helper function to check dcm2niix version

Resolves #161

**Why this change was necessary**
Part of the issue spec is to also check the dependency version if it's
installed.

**What this change does**
Adds function that captures output of `dcm2niix --version` and is
called if `dcm2niix` has been verified to be installed and in the
PATH.

Note that `dcm2niix --version` returns a nonzero exit code. This
helper's approach will be invalid if this behaviour in dcm2niix is
fixed.

**Any side-effects?**
None.

* Add helper function to check prelude version

Resolves #161

**Why this change was necessary**
Part of the issue spec is to also check t... (continued)

916 of 1016 relevant lines covered (90.16%)

0.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 617.1 29 Nov 2020 09:48PM UTC 0
90.16
Travis Job 617.1
Source Files on build 617
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #617
  • aa10af26 on github
  • Prev Build on master (#615)
  • Next Build on master (#392940685)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc