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

buildtesters / buildtest / 476 / 5
76%
devel: 76%

Build:
DEFAULT BRANCH: devel
Ran 04 May 2020 03:33PM UTC
Files 23
Run time 23s
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

04 May 2020 03:31PM UTC coverage: 66.81% (+1.6%) from 65.217%
LMOD_VERSION=6.6.2

push

travis-ci-com

web-flow
Refactor BuilderBase to account for changes to shell, shebang key in script schema (#290)

* sync script schema from
https://github.com/buildtesters/schemas/blob/master/script/script-v0.0.1.schema.json
modify implementation on shell detection, environment variable, and the
command to execute the test. We can now support passing shell options on
the command line. The shebang can be customized via 'shebang' key if
it's not found it will use the default shebang based on shell type. If
it's python it will resort to path of 'python' wrapper.
When running in dry mode we were getting output header of table of
results that were not suppose to show up.
Add more log details for BuilderBase

* raise exception BuildTestError when self.shell_name (python, sh, bash)
not found in system. We need to terminate early since we can't run test
without it.

* applying black

Signed-off-by: Shahzeb Siddiqui <shahzebmsiddiqui@gmail.com>

* Add Shell class that returns shell program, options, shell path, and
shebang. This class is intended to get the shell type
based on 'shell' key in Buildspec. The Shell class is not integrated
with BuilderBase class at this point.

* make "bash" as default shell so we can invoke Shell() without any
argument.
Raise exception in init method when path is not found. This raises an
error early as pose to later when invoking Shell.get()

* fixing up shell parser to use shared setter and functions

Signed-off-by: vsoch <vsochat@stanford.edu>

* integrate Shell with BuilderBase class.
Remove env support detection when Buildspec has 'shell: python'. Should
make note that 'env' works for shell scripts and not python scripts.

* applying black

* address fix reported by @vsoch

* Fix two bugs introduced in previous commit.
Need to add self.metadata["shell"] because it was referenced in
test_base.py
The second bug was when a Buildspec doesn't contain 'env' it causes
a bug during environment section, we neede... (continued)

156 of 272 branches covered (57.35%)

Branch coverage included in aggregate %.

623 of 894 relevant lines covered (69.69%)

0.7 hits per line

Source Files on job 476.5 (LMOD_VERSION=6.6.2)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 40
  • Travis Job 476.5
  • a2e220cb on github
  • Prev Job for LMOD_VERSION=6.6.2 on devel (#471.1)
  • Next Job for LMOD_VERSION=6.6.2 on devel (#478.3)
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