Skip to content

Commit

Permalink
Revert changes to ci-install
Browse files Browse the repository at this point in the history
SDESK-7441
  • Loading branch information
eos87 committed Nov 22, 2024
1 parent e5ac69a commit dfa83e2
Showing 1 changed file with 12 additions and 24 deletions.
36 changes: 12 additions & 24 deletions scripts/ci-install.sh
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."

0 comments on commit dfa83e2

Please sign in to comment.