Commit graph

8988 commits

Author SHA1 Message Date
Tomas Babej
f2abee3606
travis: Preserve Ubuntu 16.04 2020-12-06 10:11:03 -05:00
Tomas Babej
c6ec416e30
ci: Rename Arch container to make it clear we're testing on rolling base 2020-12-06 10:09:53 -05:00
Tomas Babej
9a193e26ec
ci: Add support for CentOS 8 2020-12-06 10:09:46 -05:00
Tomas Babej
2657880ff3
ci: Replace F28 and F29 with F31, F32 and F33 2020-12-06 10:09:39 -05:00
Tomas Babej
497262d23c
ci: Add Ubuntu 20.04 2020-12-06 10:09:31 -05:00
Tomas Babej
1b745bc505
ci: Properly setup en_US.UTF-8 locale for Ubuntu containers 2020-12-06 10:09:20 -05:00
Max Rossmannek
2620714b43
Fix Arch docker image 2020-12-06 10:01:54 -05:00
Max Rossmannek
4ebf611b91
Fix faketime packages 2020-12-06 10:01:45 -05:00
Max Rossmannek
862ae0b969
Replace libfaketime with faketime in debianstable
I verified locally that this avoids skipping all of the
faketime-dependent unittests. The Travis CI logs will have to be
investigated for all of the other docker images on which distros we may
need to apply a similar fix.
2020-12-06 10:01:30 -05:00
Max Rossmannek
b634dea7ab
Attempt greedy docker config update
This is an attempt at updating all docker configurations by simply
replacing the `python` packages with `python3`. The Travis CI will let
us know if this works.
2020-12-06 10:01:19 -05:00
Max Rossmannek
2931be613b
Enforce Python 3 in test_hooks/wrapper
This change was not included in the previous commit because the sed
command I used included the `/usr/bin/env` path to ensure I don't
replace any occurences of the word `python` which I did not wish to
replace.
2020-12-06 10:01:09 -05:00
Max Rossmannek
6d2ecaa15c
Enforce Python 3 for unittests
This commit updates all tests to enforce the Python3 executable. This is
necessary because the `assertRegex` function we use was renamed to this
name only in Python 3.2 [1]

For reference:
s;/usr/bin/env python;/usr/bin/env python3;g

[1]: https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertRegex
2020-12-06 10:00:59 -05:00
Tomas Babej
a8c215774b
tests: Implement mechanism for expected failures in C++ tests
Implements detection of unexpected successes and expected failures. Both
classes are represented in the TAP output as 'not ok', unexpected
successes with '# FIXED' metadata and expected failures as '# TODO'.

This brings C++ tests to feature parity with Python-based ones when it
comes to expected failures and unexpected successes.
2020-12-06 09:56:37 -05:00
Max Rossmannek
0ae2f2a5fd Revert "Poor implementation of linewrap restored to task"
This reverts commit 64243e6ec1.
2020-12-06 09:45:30 -05:00
Tomas Babej
9f5a38df60
NEWS: Remove 2.5.2 content, put placeholders for 2.5.3 2020-12-05 18:19:24 -05:00
Tomas Babej
5e30a65689
CMake: Bump version number to 2.5.3 2020-12-05 18:16:58 -05:00
Tomas Babej
c1de01d594
ChangeLog: Update the current release 2020-12-05 17:48:45 -05:00
Tomas Babej
2dd21de678
Merge branch '2.5.2' into master 2020-12-05 17:46:20 -05:00
Tomas Babej
b0c17d1163
holidays: Update holidays using newest holidata.net data
Remove outdated holiday files that could not be updated.
2020-12-05 17:11:36 -05:00
Tomas Babej
36d13508d4
CMake: Also ignore .travis for the tarball build 2020-12-05 16:59:14 -05:00
Tomas Babej
fdc290c546
CMake: Exclude .github directory 2020-12-05 16:51:54 -05:00
Tomas Babej
cd1d42bc9d
tests: Mark failing corner case tests as expected for 2.5.2 2020-12-05 16:40:28 -05:00
Leo
643166a337 Uncoditionally include errno.h instead of guessing
POSIX tells us that it is errno.h, musl fails to build with -Werror
because it redirects sys/errno.h->errno.h and uses #warning

(cherry picked from commit 041248e7cc)
2020-11-30 00:53:20 -05:00
John Nguyen
4c714e10a3 Fix typo in man page
The example for _unique has typo, should be using attribute for project.
Fixes #2277

(cherry picked from commit cf45f28cc0)
2020-11-30 00:53:20 -05:00
Tomas Janousek
b6910b9428 Add missing "QUARTER" to feedback_reserved_tags
A while ago I noticed that 630a1530e0 only
added the QUARTER virtual tag to src/Task.cpp, and when I checked that
again today, it was still missing from src/feedback.cpp, so I'm fixing
that.
2020-11-24 18:46:53 -05:00
mrossinek
4f14b8923f Fix variant_subtract test case after PR #2095 2020-11-24 08:12:39 -05:00
Tomas Babej
1417be626f TW-1511: Interpret string subtraction as concanetation with a dash
Fixes #1537 (previously known as TW-1511).
2020-11-24 08:12:39 -05:00
Max Rossmannek
cad9a4f834 Update diag.t to correct C++ version
The default C++ version was updated in 4729876 and this commit reflects
this change in the test.
2020-11-24 08:12:39 -05:00
mrossinek
ca1e2a5a6b Mark project.t 1455 as expected failure 2020-11-24 08:12:39 -05:00
Tomas Babej
79e076c3c0 tests: Use updated unittest method 2020-11-24 08:12:39 -05:00
mrossinek
7d567c3ac9 Fix wait.t to correct expected output 2020-11-24 08:12:39 -05:00
Tomas Babej
351965a87b
Update copyright to 2020 2020-11-21 12:43:40 -05:00
Tomas Babej
d1b867f7b5
tests: Do not require line buffering
Test runner complains about it not being supported with binary files and
it does not look like it affects any tests in the first place anyway.
2020-11-21 12:41:18 -05:00
Tomas Babej
52c49169b4
tests: Use updated unittest methods 2020-11-21 12:39:03 -05:00
Tomas Babej
720c561b75
tests: Use updated Thread object API
Replace isAlive with is_alive as the former is no longer supported in
Python 3.9.
2020-11-21 12:38:14 -05:00
Leo
041248e7cc Uncoditionally include errno.h instead of guessing
POSIX tells us that it is errno.h, musl fails to build with -Werror
because it redirects sys/errno.h->errno.h and uses #warning
2020-11-21 12:27:29 -05:00
Tomas Babej
3855ba9136
travis: Disable testing on gentoo
We would love to test on gentoo, but this currently breaks CI. Open to
community contributions to improve our coverage of this distrubition.
2020-11-21 00:59:35 -05:00
Paul Beckingham
4729876714 Updated build to use C++17 by default 2020-11-20 17:47:13 -05:00
Paul Beckingham
4ae73ba871 Updated libshared for bug fix 2020-11-20 17:36:01 -05:00
Tomas Babej
10b64adb58
CmdAdd: Make sure a UUID is printed if ID does not exist
This fixes a regression was introduced in
4e80d5d5fd.

Currently, if a user (with default configuration) adds a completed or
deleted task, they do not get a confirmation message ("Created task
..."). This is due to the fact that:
a) new-uuid is not set by default
b) new-id is set by default, but only prints message if the added task
   is in pending or waiting state

Make sure to print a message containing UUID reference if the newly
added task is in completed or deleted state.
2020-09-18 00:24:50 -04:00
John Nguyen
cf45f28cc0 Fix typo in man page
The example for _unique has typo, should be using attribute for project.
Fixes #2277
2020-05-17 09:48:24 +02:00
0xACE
64243e6ec1 Poor implementation of linewrap restored to task
This addresses #2023

For many years linewrap has been broken in taskwarrior, rendering the
application basically useless in terminals with short widths and tasks
containing URLs in them... This janky line wrap patch sort of works but
introduces other minor graphical glitches.

But seeing as no one took the time to fix it over the years, here some a
small salvation to those who suffer as much as me.

One problem of this patch is, when a line is wrapped, it may be 1 column
smaller than the terminal width, resulting in each line not fully
utilizing the terminal width.

This patch is not polished and could probably need to be tended by
someone who cares more.
2020-03-12 10:40:24 -04:00
Paul Beckingham
e186d375dc Issue 2091: duration of task is set to a wrong and extremely big value
- Thanks to Wray Zheng.
2019-08-11 19:57:52 -04:00
Paul Beckingham
04bc1a7998 - Thanks to Adrien Lemaire. 2019-08-11 14:01:22 -04:00
Doron Behar
82ed5d35b7 Truely remove priority from hardcoded attrributes 2019-05-20 09:43:24 -04:00
Doron Behar
e1998346e1 Complete attributes dynamically incl UDAs
This is the major refinement of the completion: Most of it just moved
the global variables from up above to inside _task_filter so every array
of attributes will be calculated dynamically there.
2019-05-20 09:43:24 -04:00
Doron Behar
f04d66e10b Fix small TODO and move main function to bottom 2019-05-20 09:43:24 -04:00
Doron Behar
da49dbdd84 Add TODOs to make zsh completion awesome 2019-05-20 09:43:24 -04:00
Paul Beckingham
ac97523275 libshared: Upgraded to 4178b49db1c5fed5006a4ab6aa2df3f9937f770b 2019-04-26 20:54:16 -04:00
Paul Beckingham
fb97883bef Build: Do not set CMP0037 on CMake 3.11.0 and above
- This policy is no longer necessary because CMake issue #16062, which caused
  incorrect warnings to be shown, has been resolved in 3.11.0.
- Thanks to Janik Rabe
2019-04-26 20:45:46 -04:00