-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
120 additions
and
84 deletions.
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
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#! /bin/bash | ||
|
||
PYTHON_VERSION="${1}" | ||
UBUNTU_RELEASE=$(sudo lsb_release -rs) | ||
|
||
# Update APT repositories | ||
sudo apt-get update | ||
|
||
# Update pip | ||
python3 -m pip install --user --upgrade pip | ||
|
||
# Install vEnv | ||
python3 -m pip install --user virtualenv | ||
|
||
# Install curl | ||
sudo apt-get install -y curl libcurl4 libcurl4-gnutls-dev bc | ||
|
||
# Install Qt | ||
if [ "${UBUNTU_RELEASE}" = "22.04" ]; then | ||
sudo apt-get install -y qtbase5-dev qt5-qmake qtbase5-dev-tools qttools5-dev-tools | ||
else | ||
sudo apt-get install -y qt5-default qt5-qmake qtbase5-dev-tools qttools5-dev-tools | ||
fi | ||
|
||
# Create the Python vEnv | ||
python3 -m venv pext-env | ||
source pext-env/bin/activate | ||
python3 -m pip install --upgrade pip | ||
|
||
# Install Tox | ||
python3 -m pip install tox | ||
|
||
# Install requirements | ||
python3 -m pip install -r requirements.txt | ||
|
||
# Generate translation | ||
bash -xe prepare_activate_translations.sh 70 "https://hosted.weblate.org/exports/stats/pext/?format=json" | ||
lrelease pext/pext.pro | ||
|
||
# Run tests | ||
xvfb-run tox -v -e py"${PYTHON_VERSION//./}" | ||
|
||
# Build the app | ||
rm -fR build | ||
mkdir -p build | ||
cd build || exit 1 | ||
bash -xve ../ci/build-app-image.sh |
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,17 @@ | ||
#! /bin/bash | ||
|
||
PYTHON_VERSION="${1}" | ||
|
||
# Install Tox | ||
pip3 install tox | ||
|
||
# Generate translation | ||
brew install qt jq | ||
bash prepare_activate_translations.sh 70 "https://hosted.weblate.org/exports/stats/pext/?format=json" | ||
PATH="/usr/local/opt/qt/bin:$PATH" lrelease pext/pext.pro | ||
|
||
# Run tests | ||
tox -v -e py"${PYTHON_VERSION//./}" | ||
|
||
# Build the app | ||
bash -xve ci/build-dmg.sh |