21 lines
350 B
Bash
Executable File
21 lines
350 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
# Create virtual environment if it doesn't exist
|
|
if [ ! -d "venv" ]; then
|
|
python3 -m venv venv
|
|
fi
|
|
|
|
# Activate virtual environment
|
|
source venv/bin/activate
|
|
|
|
# Install dependencies
|
|
pip install -e .
|
|
|
|
# Run tests if they exist
|
|
if [ -d "tests" ]; then
|
|
python -m unittest discover tests
|
|
fi
|
|
|
|
echo "Build completed successfully!"
|