-
-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix input completion tests on Qt6 & run tests on 22.04 #4774
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
3a3f855
Tests: Fix InputCompletion tests in Qt6
pajlada 0ace826
Tests: Use Ubuntu 22.04 for all tests
pajlada e321427
Update dockerfiles
pajlada b1a2aec
Merge remote-tracking branch 'origin/master' into fix/input-completio…
pajlada 4eab0b1
Add changelog entry
pajlada File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
FROM ubuntu:20.04 | ||
|
||
ENV TZ=UTC | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
RUN apt-get update && apt-get -y install --no-install-recommends \ | ||
cmake \ | ||
virtualenv \ | ||
rapidjson-dev \ | ||
libfuse2 \ | ||
libssl-dev \ | ||
libboost-dev \ | ||
libxcb-randr0-dev \ | ||
libboost-system-dev \ | ||
libboost-filesystem-dev \ | ||
libpulse-dev \ | ||
libxkbcommon-x11-0 \ | ||
build-essential \ | ||
libgl1-mesa-dev \ | ||
libxcb-icccm4 \ | ||
libxcb-image0 \ | ||
libxcb-keysyms1 \ | ||
libxcb-render-util0 \ | ||
libxcb-xinerama0 | ||
|
||
RUN apt-get -y install \ | ||
git \ | ||
lsb-release \ | ||
python3-pip && \ | ||
apt-get clean all | ||
|
||
# Install Qt as we do in CI | ||
|
||
RUN pip3 install -U pip && \ | ||
pip3 install aqtinstall && \ | ||
aqt install-qt linux desktop 5.12.12 && \ | ||
mkdir -p /opt/qt512 && \ | ||
mv /5.12.12/gcc_64/* /opt/qt512 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
FROM ubuntu:22.04 | ||
|
||
ENV TZ=UTC | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
RUN apt-get update && apt-get -y install --no-install-recommends \ | ||
cmake \ | ||
virtualenv \ | ||
rapidjson-dev \ | ||
libfuse2 \ | ||
libssl-dev \ | ||
libboost-dev \ | ||
libxcb-randr0-dev \ | ||
libboost-system-dev \ | ||
libboost-filesystem-dev \ | ||
libpulse-dev \ | ||
libxkbcommon-x11-0 \ | ||
build-essential \ | ||
libgl1-mesa-dev \ | ||
libxcb-icccm4 \ | ||
libxcb-image0 \ | ||
libxcb-keysyms1 \ | ||
libxcb-render-util0 \ | ||
libxcb-xinerama0 \ | ||
libfontconfig | ||
|
||
RUN apt-get -y install \ | ||
git \ | ||
lsb-release \ | ||
python3-pip && \ | ||
apt-get clean all | ||
|
||
# Install Qt as we do in CI | ||
|
||
RUN pip3 install -U pip && \ | ||
pip3 install aqtinstall && \ | ||
aqt install-qt linux desktop 5.15.2 && \ | ||
mkdir -p /opt/qt515 && \ | ||
mv /5.15.2/gcc_64/* /opt/qt515 | ||
|
||
ADD ./.patches /tmp/.patches | ||
|
||
# Apply Qt patches | ||
RUN patch "/opt/qt515/include/QtConcurrent/qtconcurrentthreadengine.h" /tmp/.patches/qt5-on-newer-gcc.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: the parameter 'values' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param]