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

cossacklabs / themis / #7816 / 1
88%
master: 83%

Build:
Build:
LAST BUILD BRANCH: release/0.15.0
DEFAULT BRANCH: master
Ran 04 Aug 2020 05:30AM UTC
Files 73
Run time 20s
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

03 Aug 2020 07:56AM UTC coverage: 87.723%. Remained the same
#7816.1

push

travis-ci

web-flow
Use "/usr/bin/env" in shebangs (#685)

* Use "/usr/bin/env" in shebangs

Instead of directly executing stuff from /bin or /usr/bin, do it via
/usr/bin/env to allow overriding the binaries via PATH. For example,
if the user has some local installation of Bash or Python which is
set as a priority in PATH, it will be used instead of the one from
hardcoded /usr/bin location.

* Use "#!/usr/bin/env bash" strictly with one argument

Apparently, Linux kernel accepts at most one argument to the binary
on the shebang line. Everything after the space is treated as a single
argument. Obviously, the user is unlikely to have an executable called
"bash -e" in their PATH, so replace all

    #!/bin/bash -e

with

    #!/usr/bin/env bash
    set -eu

instead of

    #!/usr/bin/env bash -e

which fails on Linux.

(Yeah, enable not only "-e" but "-u" as well as it's a common mistake to
use unset variables due to typos or other errors.)

* Use "-o pipefail" where pipes are used

* Handle unset variables

The "-u" option makes it an error to use unset variables. Most of the
time it is an error to do so. Where it is not an error, the ${var:-?}
syntax should be used to provide explicit default value.

3780 of 4309 relevant lines covered (87.72%)

19292.86 hits per line

Source Files on job #7816.1
  • Tree
  • List 0
  • Changed 23
  • Source Changed 0
  • Coverage Changed 23
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 7816
  • 49a8180a on github
  • Prev Job for on HEAD (##7815.1)
  • Next Job for on HEAD (##7817.1)
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