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

se-edu / addressbook-level4 / 4586 / 1
94%
master: 94%

Build:
DEFAULT BRANCH: master
Ran 28 Jul 2018 08:55AM UTC
Files 91
Run time 5s
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

28 Jul 2018 08:51AM UTC coverage: 92.204%. Remained the same
4586.1

push

travis-ci

pyokagan
<a href="https://github.com/se-edu/addressbook-level4/commit/<a class=hub.com/se-edu/addressbook-level4/commit/<a class="double-link" href="https://git"><a class=hub.com/se-edu/addressbook-level4/commit/<a class="double-link" href="https://git"><a class=hub.com/se-edu/addressbook-level4/commit/b410fcafaeb5c76772da30bfb86c350acb5ee2e8">b410fcafa">&lt;a href=&quot;https://github.com/se-edu/addressbook-level4/commit/</a><a class="double-link" href="https://github.com/se-edu/addressbook-level4/commit/&lt;a class=&quot;double-link&quot; href=&quot;https://git">&lt;a class=</a>hub.com/se-edu/addressbook-level4/commit/b410fcafaeb5c76772da30bfb86c350acb5ee2e8">b410fcafa</a><a href="https://github.com/se-edu/addressbook-level4/commit/b410fcafaeb5c76772da30bfb86c350acb5ee2e8">&lt;a href=&quot;https://github.com/se-edu/addressbook-level4/commit/b410fcafaeb5c76772da30bfb86c350acb5ee2e8&quot;&gt;&amp;quot;&amp;gt;.gitattributes: treat all *.pdf files as binary

Some students may wish to commit PDF files into their downstream repos.

The PDF file format[1] is _mostly_ text-like. As such, it is likely that
the first 8000 bytes of any PDF file will _not_ contain a NUL byte,
leading Git to treat the PDF file as a text file[2].

In AddressBook-Level4, our Travis `run-checks` scripts requires all text
files, as determined by Git, to fulfill certain requirements such as
only having LF line endings and not having any trailing whitespace.

However, PDF files, although usually determined by Git to be text files,
may not actually be _fully_ text. Particularly, PDF files may contain
embedded binary streams which contain arbitrary binary data.

This arbitrary binary data can cause PDF files to fail our Travis
`run-checks` scripts.

Given that PDFs _can_ contain binary data, it would thus make more sense
to treat the entire file as binary. This both allows them to pass our
`run-checks` scripts, as well as to prevent Git from giving
not-very-useful text diffs when the PDF files are modified.

As such, let&amp;amp;#39;s tell Git to treat all *.pdf files as binary.

[1] https://en.wikipedia.org/wiki/PDF#File_structure
[2] https://github.com/git/git/blob/&amp;lt;/a&amp;gt;&amp;lt;a class=&amp;quot;double-link&amp;quot; hr... (continued)

1431 of 1552 relevant lines covered (92.2%)

0.92 hits per line

Source Files on job 4586.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 4351
  • Travis Job 4586.1
  • b410fcaf on github
  • Prev Job for on master (#4584.1)
  • Next Job for on master (#4590.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