26 lines
689 B
Bash
Executable File
26 lines
689 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#python3 -m pip install -r requirements.txt
|
|
if [ ! -d _sandbox ]; then
|
|
echo We need to create it...
|
|
git clone https://github.com/algorand/sandbox.git _sandbox
|
|
fi
|
|
if [ "`grep enable-all-parameters _sandbox/images/indexer/start.sh | wc -l`" == "0" ]; then
|
|
echo the indexer is incorrectly configured
|
|
sed -i -e 's/dev-mode/dev-mode --enable-all-parameters/' _sandbox/images/indexer/start.sh
|
|
echo delete all the existing docker images
|
|
fi
|
|
./sandbox clean
|
|
./sandbox up -v dev
|
|
echo running the tests...
|
|
cd test
|
|
python3 test.py
|
|
rv=$?
|
|
echo rv = $rv
|
|
if [ $rv -ne 0 ]; then
|
|
echo tests in test.py failed
|
|
exit 1
|
|
fi
|
|
echo bringing the sandbox down...
|
|
cd ..
|
|
./sandbox down
|