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

hlef / juliet / 60
94%

Build:
DEFAULT BRANCH: master
Ran 08 Jul 2018 02:58PM UTC
Jobs 8
Files 13
Run time 2min
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
60

push

travis-ci

hlef
Refactor juliet new feature

In the alpha1 the juliet new command was taking two parameters: --date
and --title. This is absolutely not what we want because it restricts
the usage of juliet new to a very specific subset of article headers.

Instead we switch to a much more modular system:

1. juliet new

   Creates an article with default values.

   By default the article name formatting is $date-$title.md (title
   in slugified form). Default values for title and date are taken
   from the theme. It is highly recommended to the theme to let date
   being set by juliet (this can be done by _not_ specifying a default
   value for this variable). It is then set to the current date
   YYYY-MM-DD.

2. juliet new FILENAME

   Creates an article with default values in posts/FILENAME. For
   default, values, same as 1.

3. juliet new (FILENAME) -- key= value key2 = value2 key3 =value3

   Header values can always be passed as key value list after the --
   (stop argument processing. These values are then used for article
   name generation if filename is not specified + article header.
   Missing key values are defaulted using the theme default values.

   If the theme doesn't define default values, execution of juliet
   new is aborted with appropriate error message. That's why the
   theme should always specify proper default values if these are not
   going to be auto generated by juliet (like date_).

   In the future we will provide a hook-system which will allow themes
   to define Python hooks to generate values during juliet new
   execution.

The article name formatting (default: $date-$slug_title.md) can be
specified by the user using the filenaming_pattern config variable.
The pattern is in Python Template form (PEP 292). Accessible variables
are:

 - all command-line passed key: values
 - all theme side default values (overwritten by command-line passed
   key: values if key is identical)
 - all generated entries:
   o date_
     Either current ... (continued)

480 of 610 relevant lines covered (78.69%)

6.3 hits per line

Jobs
ID Job ID Ran Files Coverage
1 60.1 08 Jul 2018 02:58PM UTC 0
78.69
Travis Job 60.1
2 60.2 08 Jul 2018 02:58PM UTC 0
78.69
Travis Job 60.2
3 60.3 08 Jul 2018 02:58PM UTC 0
78.69
Travis Job 60.3
4 60.4 08 Jul 2018 02:58PM UTC 0
78.69
Travis Job 60.4
5 60.5 08 Jul 2018 02:58PM UTC 0
78.69
Travis Job 60.5
6 60.6 08 Jul 2018 02:59PM UTC 0
78.69
Travis Job 60.6
7 60.7 08 Jul 2018 03:00PM UTC 0
78.69
Travis Job 60.7
8 60.8 08 Jul 2018 03:00PM UTC 0
78.69
Travis Job 60.8
Source Files on build 60
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #60
  • 64982702 on github
  • Prev Build on master (#59)
  • Next Build on master (#61)
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