Commit graph

2920 commits

Author SHA1 Message Date
Shaun Ruffell
d92ce2110f test: The tests depend on the documentation.
The help.t test wants to verify that some of the man pages exist.
Therefore we need to make sure the documentation is built, otherwise:

  $ git clean -ffdx .
  $ cmake -DCMAKE_BUILD_TYPE=Debug .
  $ make test

Will fail some of the help.t tests.

Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
2021-04-10 22:52:04 +02:00
Thomas Lauf
c83d45bc0d Replace Travis CI badge with Github Actions badge
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2021-02-28 21:13:53 +01:00
Thomas Lauf
b189ccb020 Replace roff man pages with asciidoctor
This replaces the generation of man pages on project setup
by a on-demand generation via asciidoctor.
An exception are the man pages for the commands `day`, `month`, and `week`
which are simply redirects to the man page `timew-chart.1`. Those are now
static files in the Timewarrior repository.

A CMake find module to detect asciidoctor was added.
If asciidoctor is found, the targets `doc`, `man1`, and `man7` are created.
Those targets are also added to the default build target.

If asciidoctor is not available, the target `doc` is available, but it only
emits a message to install asciidoctor first.

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2021-02-21 20:58:30 +01:00
Thomas Lauf
65ef38658b Increase minimal CMake version
Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.
According to our test images all supported distributions have CMake > 3

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2021-02-12 10:50:39 +01:00
Thomas Lauf
b0e5ad6bc5 Replace Travis CI with Github Workflow
Closes #411

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2021-02-09 22:16:42 +01:00
Thomas Lauf
813754144c Remove Gentoo from test zoo
See #380. We will include the test suite in the release tarball so the Gentoo maintainers can run it and report back.

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2021-02-07 17:16:26 +01:00
Thomas Lauf
0fb7a88159 Ensure Ubuntu 16.04 docker image compiles Timewarrior with gcc >6
- libshared now requires C++14

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2021-01-26 13:36:54 +01:00
Thomas Lauf
ab240419df Ensure CentOS 7 docker image compiles Timewarrior with gcc >6
- libshared now requires C++14

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2021-01-26 13:36:03 +01:00
Thomas Lauf
2cfeef1aa2 Update libshared to c1760be8686ce0b2f778832aaa1e2f98eed2ffc1
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2021-01-25 14:31:00 +01:00
Thomas Lauf
1a6c30b93a Fix test summary.t for single-digit weeks
If summary is called during a single digit week, the respective column is only 2 characters wide

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2021-01-25 13:49:56 +01:00
Thomas Lauf
b7882fd71f Move license URL up, so Github detects the license type correctly
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2021-01-22 17:53:03 +01:00
Tomas Babej
e5870380a4
doc: Update copyright to 2021 2021-01-02 02:52:39 -05:00
Tomas Babej
572c29e7dd
ChangeLog: Add entry about Unicode support 2020-12-20 15:34:28 -05:00
Tomas Babej
2babc52dc5
build: Update libshared to version supporting Unicode 11 2020-12-20 15:34:04 -05:00
Peter
c9b212ce15 Update dark_blue.theme
fixed the description
2020-11-23 12:46:39 +01:00
Shaun Ruffell
ce021a87e3 test: Thread.isAlive() -> Thread.is_alive()
Python added Thread.is_alive() in 2.6 and removed Thread.isAlive() in
3.9.

This change is needed to run the tests with Python 3.9.

https://bugs.python.org/issue37804
Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
2020-11-21 15:34:04 +01:00
Thomas Lauf
ace5cbe876 Update libshared to 9d4a44f877611484233bab42fd9e5af3ef47b26c
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-11-09 21:50:47 +01:00
Thomas Lauf
532d1b4e91 Add test for get dom.tracked.tags with a tag with quotes
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-10-02 09:20:22 +02:00
Thomas Lauf
dafca6662d Accommodate tests for missing space at end of line
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-10-02 09:07:32 +02:00
Thomas Lauf
a8b4055ad5 Quote tags if needed when outputting them on one line
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-10-02 08:36:46 +02:00
Thomas Lauf
5b1deaab59 Do not overwrite interval index when parsing DOM reference
- Closes #390

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-10-02 08:36:46 +02:00
Joerg Kastning
d90eab17a0 Fixed URL for tarball download 2020-09-15 14:17:57 +02:00
Thomas Lauf
985717e9c8 Deactivate Gentoo Docker image due to its high maintenance costs
- See issue #380 for details

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-09-04 10:43:13 +02:00
Thomas Lauf
2e4d3266cf Add space
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-09-03 23:34:29 +02:00
Thomas Lauf
78fe021e47 Update ChangeLog
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-09-03 22:06:36 +02:00
Thomas Lauf
4487b9a617 Enter commit hash for release 1.4.2
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-09-03 22:06:36 +02:00
Shaun Ruffell
ae5e44c558 CmdSummary: Show recent intervals that start later in day than first interval with :all
It was possible for `summary` command, when used with the :all hint, to
skip over any intervals that start later than the first interval in the
database.

Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
2020-09-03 21:56:22 +02:00
Thomas Lauf
4aa8489243 Prepare for release 1.4.2
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-29 20:30:33 +02:00
Thomas Lauf
04da28fadd Enter commit hash for release 1.4.1
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-29 20:27:29 +02:00
Thomas Lauf
8cca35dff2 Remove deleted file COPYING from CMakeLists.txt
-Closes #377

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-29 20:18:25 +02:00
Thomas Lauf
40617b094f Update project version
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-29 20:16:42 +02:00
Thomas Lauf
6747beb296 Prepare for release 1.4.1
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-29 19:30:56 +02:00
Thomas Lauf
86024b1a41 Set upper limit for summary table to now if both filter and latest interval are open
- Closes #378

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-29 19:26:30 +02:00
Thomas Lauf
b9d3b284fa Enter commit hash for release 1.4.0
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-29 19:26:30 +02:00
Thomas Lauf
2447c38172 Prepare for release 1.4.0
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-29 13:22:39 +02:00
Thomas Lauf
4e8cb8b90e Drop NEWS, COPYING
- Content of `NEWS` is either already in README.md or file just echoes Timewarriors release notes on github
- `COPYING` is identical to `LICENSE`

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>

fixup! Drop 'NEWS'

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-29 11:27:50 +02:00
Thomas Lauf
87c91b1f79 Update copyright
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-29 11:27:50 +02:00
Thomas Lauf
63b5770a74 Update AUTHORS, ChangeLog
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-29 11:00:07 +02:00
Thomas Lauf
1308a124bb Replace Fedora 28 and Fedora 29 by Fedora 31 and Fedora 32
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-23 12:54:22 +02:00
Thomas Lauf
60c138b959 Adding ubuntu20.04 to the test zoo
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-23 12:27:16 +02:00
Thomas Lauf
bc7c62ecf4 Fix indentation
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-23 12:24:40 +02:00
Thomas Lauf
ac9998f01c Add docker test images for CentOS 7 and 8
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-22 12:52:40 +02:00
Thomas Lauf
ffe329cd30 Adding centos8 to the test zoo
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-22 11:39:32 +02:00
Thomas Lauf
e451a135e2 Add test for command track with future time
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-21 23:04:03 +02:00
Thomas Lauf
1ba3ee8a32 Block future times for command continue
- This is meant as a temporary fix until Timewarrior can handle intervals regardless of start time
- Closes #364

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-21 23:03:53 +02:00
Shaun Ruffell
45eec2f7a0 Add test for command continue with future time
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-21 23:03:53 +02:00
Thomas Lauf
8b9389b5ad Add hash for version 1.3.0
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-21 21:41:20 +02:00
Shaun Ruffell
9d43727c09 Use only the current interval duration when summarizing
There are several instances where the "total" reported in the interval
summary is confusing because the summarize function would walk backward
and add all intervals with the same set of tags.

Closes #248 and #308

Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
2020-08-21 21:41:20 +02:00
Thomas Lauf
7405d2be96 Drop empty intervals during overlap resolution
- Closes #372

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-21 18:08:13 +02:00
Thomas Lauf
8daf11328d Add starting times to start command
- It seems that recent changes made the `stop` command faster such that these tests aborted with "The end of a date range must be after the start."

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-19 15:41:52 +02:00