-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
33 lines (25 loc) · 795 Bytes
/
setup.sh
File metadata and controls
33 lines (25 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
# Show the tools versions
python --version
bundle --version
# Create a virtual environment if it doesn't exist
if [ ! -d "venv" ]; then
python -m venv venv
fi
# Activate the virtual environment
source venv/bin/activate
# Install the required Python packages
pip install -r requirements.txt
# Configure Bundler to install gems locally
bundle config set --local path './.bundle'
# Install Ruby gems
bundle install
# Check if Git username/email are already set
GIT_NAME=$(git config --global user.name)
GIT_EMAIL=$(git config --global user.email)
if [ -z "$GIT_NAME" ] || [ -z "$GIT_EMAIL" ]; then
echo "Git configuration not found. Running activate_github.sh..."
./scripts/activate_github.sh
else
echo "✅ Git is already configured: $GIT_NAME <$GIT_EMAIL>"
fi