image: ubuntu-2004:202010-01
name: Install Requirements
command: pip3 install -r requirements.txt
name: Start Agent and wait for agent to register
trap 'kill $(jobs -p)' EXIT
mkdir -p build/reports/agent
docker-compose -f docker-compose.yml logs -f | tee build/reports/agent/log.txt&
until curl -s http://localhost:8585/api/status | jq '.registered' | grep true; do
if [ ${attempt_counter} -eq ${max_attempts} ]; then
echo "Agent failed to register. Terminating..."
attempt_counter=$(($attempt_counter+1))
command: pytest python_example.py