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

se-edu / addressbook-level4 / 4586
94%

Build:
DEFAULT BRANCH: master
Ran 28 Jul 2018 08:55AM UTC
Jobs 1
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

pending completion
4586

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

Jobs
ID Job ID Ran Files Coverage
1 4586.1 28 Jul 2018 08:55AM UTC 0
92.2
Travis Job 4586.1
Source Files on build 4586
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4586
  • b410fcaf on github
  • Prev Build on master (#4584)
  • Next Build on master (#4590)
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