-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·29 lines (24 loc) · 862 Bytes
/
setup.sh
File metadata and controls
executable file
·29 lines (24 loc) · 862 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
#!/usr/bin/env bash
set -euo pipefail
###############################################################################
# setup.sh — Install project dependencies
#
# Add your install commands below (e.g., npm install, pip install, cargo build).
# This script is run once before grading to set up the environment.
###############################################################################
# Decompress block fixtures if not already present
for gz in fixtures/blocks/*.dat.gz; do
dat="${gz%.gz}"
if [[ ! -f "$dat" ]]; then
echo "Decompressing $(basename "$gz")..."
gunzip -k "$gz"
fi
done
# Install Python dependencies
pip install -r requirements.txt
# Install Node.js dependencies
if [[ -f "web/package.json" ]]; then
echo "Installing and building web dependencies..."
(cd web && npm install && npm run build)
fi
echo "Setup complete"