Commit Graph

91 Commits

Author SHA1 Message Date
Albert Astals Cid
d54c138be8 CI: More 6.6 -> 6.7
GIT_SILENT
2024-05-13 12:42:12 +02:00
Albert Astals Cid
ed2bf2b5c4 CI: Qt5 -> Qt6 2024-05-13 12:31:35 +02:00
Albert Astals Cid
316304e038 CI: Use newer image for build_clazy_clang_tidy
GIT_SILENT
2024-05-13 12:29:21 +02:00
Sune Vuorela
e4166fb773 Test xml lint thingie on CI run 2024-04-23 10:52:28 +00:00
Nicolas Fella
c9b1badea2 Add Windows Craft job 2024-04-07 21:44:39 +00:00
Sune Vuorela
1ef258d12c Add cppcheck run to gitlab
We lost it as a side effect of qt5-6 transition
2024-03-19 07:55:56 +00:00
Sune Vuorela
e162a3402c Apply 1 suggestion(s) to 1 file(s) 2024-03-19 07:32:29 +00:00
Sune Vuorela
be72bfb8be Improve clazy setup and enable more tests 2024-03-19 07:32:29 +00:00
Julius Künzel
0b3e123a38 [CI/CD] Add macOS jobs
In preparation of Binary Factory shutdown
2024-03-16 12:17:18 +00:00
Sune Vuorela
7d6f747d2b Disable apk generation for now 2023-12-18 22:56:22 +00:00
Sune Vuorela
263a531a09 no-lambda-unique-connection seems to have false positives in this setup 2023-12-18 22:56:22 +00:00
Sune Vuorela
b15f506db6 Disable clazy strict iterators check. It is kind of disabled in Qt6 entirely 2023-12-18 22:56:22 +00:00
Sune Vuorela
cae6c6c341 clang-tidy/clazy in qt6 environment 2023-12-18 22:56:22 +00:00
Sune Vuorela
1d58ace5fe Let CI do Qt6 build instead of Qt5 2023-12-18 22:56:22 +00:00
Sune Vuorela
1cbb5f0e00 Fix ci. Clang 13 removed from debian testing 2023-12-17 16:57:07 +01:00
Sune Vuorela
a9717a8e5f Use CI environment for clang/clazy
In order to be able to also do this with Qt6 we can't currently rely on
'random distro' to be able to give us an environment sufficient for
running clang and clazy, so use the CI system setup instead

A side effect is that we get a newer clazy and clang-tidy and thus is a
few more issues to either ignore or fix.

Also, ask ninja to continue as long as possible rather than stop at
first error to be able to get succes in as few runs as possible
2023-12-15 09:39:03 +00:00
Sune Vuorela
acfd1b2bfe Disable ubuntu lts ci.
When going Qt6 soon, this will not work anyways, and it can help
porting today when we can port to newer KDE Frameworks
2023-12-12 10:00:01 +01:00
Ingo Klöcker
a8365e5c7f Add CI template for building APKs on invent
And convert the other includes to the include:project format which is
required for the craft-android-apks.yml template.
2023-11-07 21:38:58 +00:00
Albert Astals Cid
5841551974 CI: fix which clang tidy we want 2023-09-18 12:33:15 +02:00
Sune Vuorela
3eee43ffd8 Don't use private Qt api
Add some more unit testing to expose some bugs in previous implementation and fix those as well.
2023-08-10 23:06:18 +00:00
Albert Astals Cid
7d1374c9db Tag the clang-format CI as Linux
GIT_SILENT
2023-08-08 00:53:54 +02:00
Sune Vuorela
47b8fb2729 Switch SelectCertificateDialog to ui file
No other changes is in here.
2023-06-14 17:47:41 +00:00
Nicolas Fella
0501c5d8c4 Fix raising window when attaching to an existing instance on Wayland
When the second instance is launched it receives an activation token per environment variable

We need to pass that token to the first instance so that it can use it to raise itself

Also properly use startup ids for this on X11 instead of relying on forceActiveWindow, which is a hack
2023-02-09 12:26:52 +00:00
Albert Astals Cid
91afa74342 Set minimum requirement to Ubuntu 22.04 2022-11-19 09:48:15 +00:00
Nicolas Fella
80afe26873 Implement event.change
This represents the newly entered data for each keystroke. This is often a single added character, but for cases like pasting text it can be more complex.

The PDF API reference doesn't specify any algorithm to use.

The algorithm used here works by iterating through both strings from the start until the first different character is encountered. Then the rest of the new text is considered the difference.

This doesn't produce the theoretically optimal/minimal diff, but seems to work well enough for practical application.

When text is removed the diff is empty
2022-09-13 21:51:15 +00:00
Albert Astals Cid
818e1445f7 CI: reenable clazy warning now that it has cmake 3.24.1 2022-08-19 13:53:36 +02:00
Albert Astals Cid
4c25d516b4 CI: Disable no-copyable-polymorphic while cmake 3.24.0 generates broken code
https://gitlab.kitware.com/cmake/cmake/-/issues/23823
2022-08-09 23:39:39 +02:00
Albert Astals Cid
4ae3762ab8 CI: workaround cmake 3.24.0 issues
https://gitlab.kitware.com/cmake/cmake/-/issues/23823
2022-08-05 21:29:43 +00:00
Albert Astals Cid
0a571b84df clang-tidy-14 2022-08-02 23:09:05 +02:00
Nicolás Alvarez
0553e93121 CI: Tag custom Ubuntu and Clazy jobs as 'Linux'
This makes them run on the faster CI servers that normally run linux.yml.
There are also 3 servers so this brings better parallelism.

Not all custom jobs are suitable to run there, but these in particular
should be fine.
2022-04-09 14:56:47 -03:00
Albert Astals Cid
98fbeefcfe CI: Add Windows
GIT_SILENT
2022-04-08 11:10:05 +02:00
Albert Astals Cid
9d3842c796 Move to clang-format 13 2022-03-10 00:23:22 +01:00
Carl Schwan
c9e09be0a9 Improve mobile drawer
Before:

![image](/uploads/cd0af949c3929eae5fbe68c6916e565b/image.png)

![image](/uploads/e121ddfc21aa6fb01e81f80cde7270d8/image.png)

After:

![image](/uploads/93ef9afc24d1712a20fa64bd06ad09fb/image.png)

![image](/uploads/721cca28cce0a9ab2e409774070a439b/image.png)

@mart
2022-01-19 22:33:21 +00:00
Albert Astals Cid
b38b2dfe52 Merge remote-tracking branch 'origin/release/21.12' 2022-01-03 21:54:22 +01:00
Albert Astals Cid
46bc21bfd9 CI: Debian has removed clazy from testing, use the one in unstable for now
Disable a few new warnings in clang-tidy

bugprone-implicit-widening-of-multiplication-result and
bugprone-easily-swappable-parameters seem like would be nice to fix, but
no time now
2022-01-03 17:03:46 +01:00
Albert Astals Cid
8681bc0223 Okular Mobile: Require Qt 5.15.2
Removes the smooth property of PageItem since it was never set and clazy
was complaining about it not having a NOTIFY signal

Remove two signals that already exist in parent class

Fix C++11 detach in range-loop
2021-12-28 09:06:01 +00:00
Albert Astals Cid
3792d8d560 Tweak default UI
It's desktop unless you're building for Android where the default it's
mobile.

You can still manually specify which UI you want and you'll get that
regardless of the platform

Only require KParts if we're building the desktop UI

Two small changes in CI:
 * Stop pretending we have a macOS CI
 * Add Android CI
    - libkexiv2, khtml and kjs would be nice but we don't have Android builds
      yet
2021-12-17 22:03:35 +00:00
Albert Astals Cid
a157ded61d Use "new" freebsd/Linux CI templates 2021-11-28 11:49:12 +01:00
Albert Astals Cid
f9ca87c8a1 CI: add the deb-src of testing since we're based on testing not unstable 2021-10-13 00:23:49 +02:00
Albert Astals Cid
4880e609af CI: Switch to new clang-format 2021-01-10 00:51:48 +01:00
Nicolas Alvarez
d23422d04a gitlab-ci: use eatmydata in apt-get
apt-get uses several fsync() calls on each package it installs, and that's
very slow, especially on non-SSD. eatmydata turns fsync into no-op, which
makes package installation much faster (it can cause corruption if there's
power loss or similar, but that doesn't matter in CI where we throw away
the whole container anyway).

Currently the build_ubuntu_20_04 job in GitLab CI takes 8-9 minutes to
install dependencies. Using eatmydata it went down to 2 minutes.
2020-11-01 13:46:14 -03:00
Albert Astals Cid
1f187211bc Remove CI workaround 2020-09-24 19:35:36 +02:00
Albert Astals Cid
56a23a803f CI: fix build_clazy_clang_tidy 2020-09-17 01:27:42 +02:00
Albert Astals Cid
e989200dcf Increase minimum supported versions to those provided by Ubuntu 20.04 2020-09-13 01:03:53 +02:00
Albert Astals Cid
92e7c78f56 Check clang-format at CI stage 2020-07-11 09:17:35 +02:00
Albert Astals Cid
a0d6a377cb CI: Remove python-yaml 2020-05-23 20:07:30 +02:00
Albert Astals Cid
e2335e965a CI: Use debian testing while unstable is broken 2020-03-26 22:28:00 +01:00
Albert Astals Cid
f431ef6dcc CI: tell debian derivatives not to ask us question in apt time 2020-03-26 22:27:57 +01:00
Simone Gaiarin
341875b342 Make clang-tidy in CI use the .clang-tidy config file 2020-02-29 09:26:34 +01:00
Albert Astals Cid
3720833be4 Enable clazy qstring-allocations 2020-02-21 17:45:03 +01:00