-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDESK-7441
- Loading branch information
Showing
1 changed file
with
12 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "Starting script execution..." | ||
|
||
# Install python package dependencies | ||
echo "Updating package lists and installing dependencies..." | ||
sudo apt-get -y update && echo "Package lists updated." | ||
sudo apt-get -y install libxml2-dev libxmlsec1-dev libxmlsec1-openssl && echo "Dependencies installed successfully." | ||
sudo apt-get -y update | ||
sudo apt-get -y install libxml2-dev libxmlsec1-dev libxmlsec1-openssl | ||
|
||
# Update python core packages | ||
echo "Upgrading Python core packages..." | ||
python -m pip install --upgrade pip wheel setuptools && echo "Python core packages upgraded." | ||
python -m pip install --upgrade pip wheel setuptools | ||
|
||
if [ "$INSTALL_NODE_MODULES" == "true" ]; then | ||
echo "INSTALL_NODE_MODULES is true. Configuring git and installing npm dependencies..." | ||
git config --global url."https://git@".insteadOf git:// && echo "Git configured successfully." | ||
npm install && echo "NPM dependencies installed successfully." | ||
git config --global url."https://git@".insteadOf git:// | ||
npm install | ||
fi | ||
|
||
if [ "$INSTALL_PY_MODULES" == "true" ]; then | ||
echo "INSTALL_PY_MODULES is true. Installing Python dependencies from server/requirements.txt..." | ||
pip install -r server/requirements.txt && echo "Python dependencies installed successfully." | ||
pip install -r server/requirements.txt | ||
fi | ||
|
||
if [ "$INSTALL_PY_EDITABLE" == "true" ]; then | ||
echo "INSTALL_PY_EDITABLE is true. Installing Python package in editable mode..." | ||
pip install -e . && echo "Python package installed in editable mode successfully." | ||
pip install -e . | ||
fi | ||
|
||
if [ "$E2E" == "true" ]; then | ||
echo "E2E is true. Setting up the E2E environment..." | ||
cd e2e/server || { echo "Failed to change directory to e2e/server"; exit 1; } | ||
echo "Installing Python dependencies for E2E tests..." | ||
pip install -r requirements.txt && echo "E2E Python dependencies installed successfully." | ||
cd ../ || { echo "Failed to change directory back to e2e"; exit 1; } | ||
echo "Configuring git and installing npm dependencies for E2E tests..." | ||
git config --global url."https://git@".insteadOf git:// && echo "Git configured successfully for E2E." | ||
npm install && echo "NPM dependencies for E2E tests installed successfully." | ||
cd e2e/server | ||
pip install -r requirements.txt | ||
cd ../ | ||
git config --global url."https://git@".insteadOf git:// | ||
npm install | ||
fi | ||
|
||
echo "Script execution completed." |