Commit Graph

261 Commits

Author SHA1 Message Date
Adriaan de Groot
c18d40f61b CI: switch lupdate-versions checked for
- look for the more-specific lupdate-qt5 first, then the generic one
 - in practice this is moot, though, since the only person running
   this script is me, on one of my development VMs

Reported by Kevin Kofler (who rightly points out that lupdate *might*
be a Qt4 or even Qt3-era executable).
2020-01-26 00:43:21 +01:00
Adriaan de Groot
48dec91606 CI: fix-up txpull
- canonicalize the files fetched from TX after import
2020-01-25 23:26:40 +01:00
Adriaan de Groot
6eb52c2989 CI: fix-up txpush
- need to force-push the translation tag (since there's only one,
   and it moves through history whenever TX is pushed)
 - xmllint canonicalization removes the DOCTYPE, so hack in
   a pipeline stage that re-inserts it.
2020-01-25 23:05:36 +01:00
Adriaan de Groot
397440539f CI: explanations after txcheck fails 2020-01-25 17:37:05 +01:00
Adriaan de Groot
fa466b447c CI: Canonicalize XML first
- Do XML processing / canonicalisation in txpush only
 - Run the *HEAD* version of txpush in both worktrees
2020-01-25 17:34:44 +01:00
Adriaan de Groot
64b56664de CI: use explicit encoding in XML tidy 2020-01-25 17:13:49 +01:00
Adriaan de Groot
053fa28b19 CI: improve TX consistency
- txpush
   - don't try to push TX for the timezone list
   - xmllint --format the .ts files to avoid inconsistency between
     TX tool versions
 - txcheck
   - xmllint --format
   - hard-code the list of files, it's not worth the hassle
   - don't apply XML cleanups to POT files
   - strip linenumbers from POT files for diffing
2020-01-25 17:02:07 +01:00
Adriaan de Groot
5dad5dae02 i18n: support Tumbleweed versioned-lupdate executables 2020-01-25 15:48:08 +01:00
Adriaan de Groot
d86b6bddeb CI: when pushing TX, also push the tag 2020-01-25 12:36:02 +01:00
Adriaan de Groot
a403f1e851 CI: allow plain clang-format (Tumbleweed) 2020-01-21 19:07:03 +01:00
Adriaan de Groot
93ae44e214 [libcalamares] Split translatable timezone data
- Hide the one file from lupdate by giving it a weird suffix
 - Call lupdate a second time for the timezone translations
 - While here, adjust so that the options precede the directories
   they are supposed to affect

I don't want to give the translation teams 444 new strings all
at once (about 90% of which don't need translation).
2019-12-10 22:44:10 +00:00
Adriaan de Groot
ddc2f60768 Merge branch 'master' into zone-data 2019-12-09 17:44:32 +01:00
Adriaan de Groot
1fc31cde32 CI: make tag consistent between txpush and txcheck 2019-12-03 11:29:46 +01:00
Adriaan de Groot
cb659555a2 CI: don't accidentally push lightweight translation tag 2019-11-28 16:49:08 +01:00
Adriaan de Groot
b70e5d7e0f CI: allow cleaning up a string-freeze-check independently 2019-11-28 15:58:02 +01:00
Adriaan de Groot
3bf1fbba65 CI: ignore changes in location (e.g. source-line changes of strings) for string freeze 2019-11-28 15:55:15 +01:00
Adriaan de Groot
fae1fdae1c CI: allow meaningful error messages
- Move set -e down in the script so that the error-handling
   at the top (which prints meaningful error messages) isn't
   short-circuited by the -e.
2019-11-26 22:29:06 +01:00
Adriaan de Groot
f51111d0f3 CI: Make string-freeze checking part of release process 2019-11-21 14:29:54 +01:00
Adriaan de Groot
d3cc4ec395 CI: silence git branch during cleanup of txcheck 2019-11-21 14:24:10 +01:00
Adriaan de Groot
a0556d1dd7 CI: enforce 1 week of string freeze 2019-11-21 14:23:00 +01:00
Adriaan de Groot
bf21e8a4f5 CI: clean up after tx checking 2019-11-21 14:07:41 +01:00
Adriaan de Groot
e6a2384294 CI: do all tx checking in worktrees 2019-11-21 14:03:21 +01:00
Adriaan de Groot
b5cca9aabf CI: Add tool to enforce the string freeze
- check for conventional translation tag
 - diff the generated translation files to enforce consistency
2019-11-21 13:53:39 +01:00
Adriaan de Groot
5fbae8213d CI: fix Qt version-selection for FreeBSD when calling lupdate 2019-11-19 18:07:13 +01:00
Adriaan de Groot
9f90ef6377 CI: when pushing translations, mark it with a git tag 2019-11-18 17:07:08 +01:00
Adriaan de Groot
eb84c0488d CI: Polish release script when -B is used to skip build 2019-10-01 11:03:12 +02:00
Adriaan de Groot
d68ff5f694 CI: add option handling (alongside env) to influence build 2019-10-01 10:39:24 +02:00
Adriaan de Groot
e2cb2690bd CI: tell where if the release builds fail 2019-08-07 12:50:46 +02:00
Adriaan de Groot
6c5d0e9d3d CI: make scripts executable 2019-08-07 12:18:26 +02:00
Adriaan de Groot
fa676c573e CI: Fix style script
- when passing in more than one directory, expanded the wrong variable
2019-08-04 22:21:53 +02:00
Adriaan de Groot
f4034f629a CI: keep Esperanto in the "incomplete" list
- Since QLocale does not support Esperanto, we can't effectively load it.
2019-08-02 09:32:31 +02:00
Adriaan de Groot
d220fcea24 CI: allow different versions of clang-format 2019-07-05 10:47:31 +02:00
Adriaan de Groot
25fe8f73c9 CI: label languages "incomplete" at < 5% 2019-06-18 11:44:19 +02:00
Adriaan de Groot
b1f9d1334c CI: chase Python deprecations in ConfigParser 2019-06-17 16:07:06 +02:00
Adriaan de Groot
3b146d47d0 CI: Remove mention of cLog from documentation 2019-06-13 11:07:45 +02:00
Adriaan de Groot
8053bf6f3a CI: use both tools for code-formatting
- astyle can do some things that clang-format doesn't (e.g.
   adding brackets; you need clang-tidy for that),
 - clang-format does a much nicer job with lambdas and certain
   other constructions,
 - allow passing in directories at a time for formatting.
2019-06-11 13:44:29 +02:00
Adriaan de Groot
54c3adb466 CI: add brackets to one-line blocks
- since we mix Python (indentation is important) with C++ (it isn't),
   having indented one-line blocks which suddenly need {} when a
   statment is added is confusing and error-prone. Instead, make
   the blocks explicit, always, in C++.
2019-06-11 13:44:29 +02:00
Adriaan de Groot
94bea9baaf CI: update documentation of debug-levels 2019-06-11 13:44:29 +02:00
Adriaan de Groot
0a1b27fcfa CI: add clang-format as a tool
- update the style guide to require braces around blocks
 - add a clang-format file that is pretty close to the
   astyle configuration
2019-06-11 13:44:29 +02:00
Adriaan de Groot
2ce2b08027 [partition] Indent lambdas to tab-stop.
- Lambdas are all over the place in this codebase, formulate
   a standard and start adjusting code to it in passing.
2019-05-31 12:08:58 +02:00
Adriaan de Groot
c44eaf107f CI: When stopping the build early, log where it was left 2019-05-14 05:29:18 -04:00
Adriaan de Groot
094110dccf CI: make the release script more flexible 2019-04-15 09:52:43 -04:00
Adriaan de Groot
c9421ca32c CI: follow XDG spec more closely in AppImage script
- Misplaced $D
 - Set XDG_*_DIRS without the /calamares/ trailer
 - Don't overwrite XDG_*, but append for AppImage, avoid unnecessary :
 - Explain XDG_* tweaks in the AppImage documentation at the top.
2019-04-02 10:33:13 -04:00
Adriaan de Groot
14f8262f2d CI: Fix Copyright
- yes, that's also me, but not the right address for Calamares
2019-04-02 10:33:13 -04:00
Adriaan de Groot
b4a51fe017 CI: remove unused script 2019-03-29 17:05:04 -04:00
Adriaan de Groot
96649feedc CI: Improve AppImage verbosity
- Tell the user beforehand where the log files and artifacts will be
2019-03-29 05:42:36 -04:00
Adriaan de Groot
f5df259b43 CI: Improve AppImage builds
- script was set up for KPMCore master (e.g. KDE neon), and
   didn't support older KPMCore releases; now it doesn't fatal
   error when the KPMCore plugins can't be found.
 - when it finishes, tell the user where the artifacts are found.
2019-03-29 05:36:49 -04:00
Adriaan de Groot
6b40f1f01b CI: AppImage with Conda
- Prepare for using Conda for the Python environment in the
   AppImage. This does not actually work, because the Python
   support in Calamares doesn't find the alternative environment.
 - Also log everything, rather than re-starting the log with
   each build step.
2019-03-20 10:08:55 +01:00
Adriaan de Groot
c9026b429d CI: Fix Python modules in AppImage
- set PYTHONPATH inside the AppImage so libcalamares is found
 - add Python module to the sample configuration
 - relax password requirements (while we're at it)
2019-03-19 18:21:35 +01:00
Adriaan de Groot
ed2f9b744d CI: AppImage support
- Add a script for building a Calamares AppImage file (this is
   useful in *some* limited contexts, not a general way to distribute
   Calamares since it's much more efficient to use installed libs).
 - Add example config files for this AppImage build.
 - Download the linuxdeploy tools if they are missing
 - Document script flags some more
2019-03-19 11:11:43 -04:00
Adriaan de Groot
ae714278a5 CI: update description of release process 2019-02-12 11:50:26 +01:00
Adriaan de Groot
a210ff6797 i18n: list translations alphabetically
- it's enough to know which "band" a translation is in, no
   need to keep them in translation-completeness order
 - makes it easier to sort-and-spot what languages have moved
   between bands
 - suppress es_ES automatically.
2019-02-12 05:26:47 -05:00
Adriaan de Groot
4004af09ad i18n: improve documentation on Transifex scripts 2019-01-25 07:46:19 -05:00
Adriaan de Groot
0b6e1ca488 i18n: update list of translations from Transifex
- Add automatic tooling to retrieve translation stats and
   output new CMake variable settings.
 - If there are i18n language selection warnings, stop CMake.
2018-12-13 14:50:33 +01:00
Adriaan de Groot
6798d613d8 CI: guess that debug builds are way too big for Travis 2018-12-11 15:40:02 +01:00
Adriaan de Groot
59e30e3cdb CI: yet another attempt to debug the disk-space failures 2018-12-11 15:25:39 +01:00
Adriaan de Groot
c4b5360d91 CI: more debugging due to disk-space problems 2018-12-11 14:53:06 +01:00
Adriaan de Groot
19617fc42d CI: more debugging due to disk-space problems 2018-12-11 14:23:23 +01:00
Adriaan de Groot
33540749b2 CI: switch to debug builds 2018-11-06 06:37:55 -05:00
Adriaan de Groot
579f1dfee7 CI: don't try to run tests.
- permissions on the tmpfs where everything is built,
   prevents the test-applications from running.
2018-09-20 11:07:56 -04:00
Adriaan de Groot
bc732ccbc7 CI: mess around with test-application permissions 2018-09-20 10:53:46 -04:00
Adriaan de Groot
a40864f709 CI: mess around with running tests 2018-09-20 15:40:26 +02:00
Adriaan de Groot
b0db4780bf CI: be more chatty while running tests 2018-09-20 15:13:43 +02:00
Adriaan de Groot
a32149bd92 CI: run tests after build as well 2018-09-20 08:02:43 -04:00
Adriaan de Groot
933ad82392 CI: increase build directory size
- Fix typo in the build-debugging bits
 - Increase tmpfs size of /build because it looks like "make install"
   ends up filling the disk, and then it fails.
2018-09-11 10:23:48 -04:00
Adriaan de Groot
be8de205af CI: be more verbose in the CI 2018-09-11 08:26:32 -04:00
Adriaan de Groot
aee5676ae8 ci: be more verbose on failure and on install 2018-09-03 05:15:51 -04:00
Adriaan de Groot
ae0764f52e CI: be more verbose in the CI 2018-08-21 07:45:44 -04:00
Adriaan de Groot
00e1bb9c8d CI: fix the build on Travis
- Make the Travis scripts a bit more verbose on failure
 - Fix wrong filename tested for picking up the configuration
   (this is why the builds were failing: missing the force-webkit
   flag, while webengine isn't in the dockerfile for Travis)

FIXES #1018
2018-08-20 17:39:56 -04:00
Adriaan de Groot
f73f4bdea2 CI: for now, switch off PythonQt 2018-08-10 07:09:28 -04:00
Adriaan de Groot
6f39db4752 ci: name tags consistently 2018-06-28 06:02:18 -04:00
Adriaan de Groot
59dd181cfc ci: complete release script
- Create tag, tarball, and test tarball
 - Print instructions for completing the release
2018-06-28 05:48:04 -04:00
Adriaan de Groot
cfe92252d2 ci: if clang is available, do that build too 2018-06-27 12:53:45 -04:00
Adriaan de Groot
37552c184b ci: add a release script
This is the start of a release script. The idea is to automate
a whole bunch of the steps documented in ci/RELEASE.md, so that
a release becomes more straightforward. Assumptions abound:
basically this is going to work on my workstation, and not
on any other.
2018-06-27 12:50:20 -04:00
Philip
fc8d961049 [ci] fix link in HACKING.md 2018-05-26 09:49:27 +02:00
Adriaan de Groot
7090227269 i18n: fix up tooling
- suppress languages we've decided not to have anymore
 - prevent txpull from losing .desktop keys it doesn't understand,
   by splitting off a desktop.in file with only the (source) fields.
2018-05-14 06:28:57 -04:00
Adriaan de Groot
fdccff83c3 i18n: when extracting strings, skip branding 2018-03-09 07:22:45 -05:00
Adriaan de Groot
99b9f4a501 i18n: missed some commit-message fixups in tooling 2018-02-13 11:53:53 +01:00
Adriaan de Groot
719989c6d4 i18n: change commit messages generated by CI tc scripts 2018-02-08 10:10:16 +01:00
Adriaan de Groot
762ad54344 Documentation: change http links to GitHub to https 2017-12-20 08:39:09 -05:00
Adriaan de Groot
b5f2f22a78 Documentation: update HACKING 2017-11-06 06:58:05 -05:00
Adriaan de Groot
99858242fb CI: Replace Jenkins-oriented scripts with Travis-oriented ones 2017-10-25 05:26:04 -04:00
Adriaan de Groot
173f4aba1b Update release-procedures 2017-10-13 16:42:31 -03:00
Adriaan de Groot
c0867c76fd Document another way to create tarballs 2017-09-25 17:13:33 +02:00
Adriaan de Groot
a4a05acc61 Remove more crashreporter references 2017-09-20 09:25:05 +02:00
Adriaan de Groot
c2a69ea943 i18n: cleanup after txpull
- remove extra .desktop files created in lang/
 - remove annoyingly-doubled # Translations comment
2017-09-18 15:50:00 +02:00
Adriaan de Groot
f63b44c984 i18n: smash things back from unspecified charset to UTF-8 2017-09-07 05:43:50 -04:00
Adriaan de Groot
1859808227 Move development-related scripts, tools, into ci/ 2017-09-05 06:09:51 -04:00
Adriaan de Groot
71fe0f6f03 Python-i18n: pygettext is deprecated
- Use xgettext -L python instead
 - Mark _n as a plural-forms translation function
 - Explicit output to .pot files (instead of default .po)
2017-08-31 04:09:48 -04:00
Adriaan de Groot
44262951a1 Python-i18n: add _n() as a gettext keyword, for plurals 2017-08-30 17:37:04 -04:00
Adriaan de Groot
9f5ff55ba2 Python-i18n: tx pull and push improvements
- python jobmodule translations
 - only keep top-level desktop file
2017-08-10 10:42:03 -04:00
Adriaan de Groot
5ebbc00334 i18n: document txpush, de-bash 2017-08-09 05:35:47 -04:00
Adriaan de Groot
e1ba93a0c2 i18n: document txpull, de-bash 2017-08-09 07:19:37 +09:00
Adriaan de Groot
e94ea438fb i18n: extend .desktop tooling-support 2017-08-08 04:11:19 -04:00
Adriaan de Groot
17a6ca2207 i18n: automatic i18n merges are down 2017-08-08 03:20:16 -04:00
Adriaan de Groot
ef8cbcf526 Coverity: add (stub) modeling file 2017-07-03 09:18:09 -04:00
Adriaan de Groot
4885b4afec i18n: reduce noise-only commits from Transifex 2017-07-03 05:23:58 -04:00
Adriaan de Groot
97ded0ec48 i18n: see if Transifex sync uses these scripts. 2017-06-28 08:09:22 -04:00
Teo Mrnjavac
e67abde6f7 Pull all catalogs and push back to git. 2016-12-16 17:03:14 +01:00
Teo Mrnjavac
256a629ece Push all PythonQt module translation catalogs. 2016-12-16 17:03:14 +01:00
Teo Mrnjavac
a44f336150 Correctly untar Coverity tool. 2016-12-09 17:43:44 +01:00
Teo Mrnjavac
2e405acbac Update Coverity CI scripts. 2016-12-09 17:16:39 +01:00
Teo Mrnjavac
11c43e3d5d Fix cmake call for CI. 2016-07-27 13:38:30 +02:00
Teo Mrnjavac
e70ab95e92 Fix Coverity build. 2016-07-25 17:58:22 +02:00
Teo Mrnjavac
78b01d1e20 Fix CI. 2016-07-25 17:21:11 +02:00
Teo Mrnjavac
ec5c1240c2 Fix permissions. 2015-09-29 11:33:52 +02:00
Teo Mrnjavac
368f1d1106 Add cppcheck script to CI. 2015-09-27 15:37:48 +02:00
Teo Mrnjavac
0978fff082 Calamares coverity build. 2015-09-25 11:58:29 +02:00
Teo Mrnjavac
846074545b Add KPMcore Coverity build script. 2015-09-25 11:39:06 +02:00
Teo Mrnjavac
2fd066794b Transifex push script. 2015-09-25 10:58:25 +02:00
Teo Mrnjavac
b42ea45409 Add CI tooling. 2015-09-24 16:04:15 +02:00