diff --git a/.travis.yml b/.travis.yml index 69ea2e530..832120558 100644 --- a/.travis.yml +++ b/.travis.yml @@ -239,7 +239,9 @@ script: && grep -q 'May not access' lib/beautiful/init.lua fi - | - set -e + trap 'echo ERR CODE $? from $BASH_COMMAND : $LINENO' ERR + trap 'echo EXIT CODE $? from $BASH_COMMAND : $LINENO' EXIT + set -ex if [ -n "$BUILD_IN_DIR" ]; then # Explicitly remove the Makefile to not build from the src dir accidentally. rm Makefile @@ -289,7 +291,7 @@ script: fi - | if [ "$TEST_PREV_COMMITS" = 1 ] && ! [ "$TRAVIS_PULL_REQUEST" = false ]; then - set -e + set -ex # Check each commit separately (to make git-bisect less annoying). # Fix Travis' commit range (https://github.com/travis-ci/travis-ci/issues/4596). commit_range="${TRAVIS_COMMIT_RANGE/.../..}" @@ -330,7 +332,9 @@ after_success: - if [ "$BUILD_APIDOC" = "true" ]; then build-utils/travis-apidoc.sh; fi # Push code coverage information - | - set -e + trap 'echo ERR CODE $? from $BASH_COMMAND : $LINENO' ERR + trap 'echo EXIT CODE $? from $BASH_COMMAND : $LINENO' EXIT + set -ex if [ "$DO_COVERAGE" = "coveralls" ]; then test -f build/luacov.stats.out || { echo 'build/luacov.stats.out does not exist.'; return 1; } luacov-coveralls --verbose --merge diff --git a/docs/common/glib_timedate_format.ldoc b/docs/common/glib_timedate_format.ldoc new file mode 100644 index 000000000..5a9476ddd --- /dev/null +++ b/docs/common/glib_timedate_format.ldoc @@ -0,0 +1,28 @@ +--
Format | +--Description | +--
---|---|
%a | The abbreviated weekday name according to the current locale |
%A | the full weekday name according to the current locale |
%b | The abbreviated month name according to the current locale |
%B | The full month name according to the current locale |
%d | The day of the month as a decimal number (range 01 to 31) |
%e | The day of the month as a decimal number (range 1 to 31) |
%F | Equivalent to %Y-%m-%d (the ISO 8601 date format) |
%H | The hour as a decimal number using a 24-hour clock (range 00 to 23) |
%I | The hour as a decimal number using a 12-hour clock (range 01 to 12) |
%k | The hour (24-hour clock) as a decimal number (range 0 to 23); single digits are preceded by a blank |
%l | The hour (12-hour clock) as a decimal number (range 1 to 12); single digits are preceded by a blank |
%m | The month as a decimal number (range 01 to 12) |
%M | The minute as a decimal number (range 00 to 59) |
%p | Either "AM" or "PM" according to the given time value, or the corresponding strings for the current locale. Noon is treated as "PM" and midnight as "AM". |
%P | Like %p but lowercase: "am" or "pm" or a corresponding string for the current locale |
%r | The time in a.m. or p.m. notation |
%R | The time in 24-hour notation (%H:%M) |
%S | The second as a decimal number (range 00 to 60) |
%T | The time in 24-hour notation with seconds (%H:%M:%S) |
%y | The year as a decimal number without the century |
%Y | The year as a decimal number including the century |
%% | A literal % character |