Fix input completion tests on Qt6 & run tests on 22.04 (#4774)

* Tests: Fix InputCompletion tests in Qt6

This is achieved by not checking exact order for certain completion tests

* Tests: Use Ubuntu 22.04 for all tests

This allows us to be a bit more loose and use more C++20 features in
tests

* Update dockerfiles
This commit is contained in:
pajlada
2023-08-27 13:11:59 +02:00
committed by GitHub
parent 72f0f49fbf
commit ac6708b3a2
9 changed files with 151 additions and 84 deletions
+24
View File
@@ -0,0 +1,24 @@
FROM chatterino-ubuntu-22.04-base
ADD . /src
RUN mkdir /src/build
# cmake
RUN cd /src/build && \
CXXFLAGS=-fno-sized-deallocation cmake \
-DCMAKE_PREFIX_PATH=/opt/qt515/lib/cmake \
-DUSE_PRECOMPILED_HEADERS=OFF \
-DBUILD_WITH_QTKEYCHAIN=OFF \
-DBUILD_TESTS=ON \
..
# build
RUN cd /src/build && \
make -j8
ENV QT_QPA_PLATFORM=minimal
ENV QT_PLUGIN_PATH=/opt/qt515/plugins
# test
CMD /src/build/bin/chatterino-test