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

xolox / python-rotate-backups / 95
93%
master: 93%

Build:
Build:
LAST BUILD BRANCH: allow_unix_timestamp_scanning
DEFAULT BRANCH: master
Ran 13 Feb 2020 11:53PM UTC
Jobs 7
Files 2
Run time 3min
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
95

push

travis-ci

xolox
Merge pull request #23: New timestamp pattern option

The pull request wasn't exactly complete (the code couldn't have run as
written, although it showed the general idea clear enough) so I decided
to treat #23 as more of a feature suggestion. However there was no
reason no to merge the pull request and use it as a base for my changes,
hence why I decided to do so despite rewriting the code.

Changes from the pull request:

- Renamed 'timestamp' to 'timestamp_pattern' (less ambiguous).

- Added validation that custom patterns define named capture
  groups corresponding to all of the required date components.

- Rewrote mapping from capture groups to datetime.datetime() arguments:

  - Previously positional datetime.datetime() arguments were used which
    depended on the order of capture groups in the hard coded regular
    expression pattern to function correctly.

  - Now that users can define their own patterns, this is no longer a
    reasonable approach. As such the code now constructs and passes a
    dictionary of keyword arguments to datetime.datetime().

- Updated documentation and command line interface usage message.

- Added tests for the new behavior.

28 of 28 new or added lines in 2 files covered. (100.0%)

380 of 412 relevant lines covered (92.23%)

6.45 hits per line

Jobs
ID Job ID Ran Files Coverage
1 95.1 13 Feb 2020 11:54PM UTC 0
92.23
Travis Job 95.1
2 95.2 13 Feb 2020 11:55PM UTC 0
92.23
Travis Job 95.2
3 95.3 13 Feb 2020 11:54PM UTC 0
92.23
Travis Job 95.3
4 95.4 13 Feb 2020 11:54PM UTC 0
92.23
Travis Job 95.4
5 95.5 13 Feb 2020 11:53PM UTC 0
92.23
Travis Job 95.5
6 95.6 13 Feb 2020 11:56PM UTC 0
92.23
Travis Job 95.6
7 95.7 13 Feb 2020 11:57PM UTC 0
91.99
Travis Job 95.7
Source Files on build 95
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #95
  • 704aff8e on github
  • Prev Build on dev (#93)
  • Next Build on dev (#96)
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

© 2025 Coveralls, Inc