run-full-tests.sh 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/usr/bin/env bash
  2. set -e
  3. SCRIPT_PATH="$(dirname "${BASH_SOURCE[0]}")"
  4. cd $SCRIPT_PATH
  5. CONTAINER_ID=$(./run-test-node-docker.sh)
  6. function cleanup() {
  7. docker logs ${CONTAINER_ID} --tail 15
  8. docker-compose -f ../../docker-compose.yml down -v
  9. }
  10. trap cleanup EXIT
  11. sleep 3
  12. # Display runtime version
  13. yarn workspace api-scripts tsnode-strict src/status.ts | grep Runtime
  14. # Start any other services we want
  15. # docker-compose -f ../../docker-compose.yml up -d colossus-1
  16. # Start a query-node
  17. ../../query-node/start.sh
  18. # Run proposals tests first, since they require no leads hired
  19. ./run-test-scenario.sh proposals
  20. # Setup storage & distribution
  21. HOST_IP=$(./get-host-ip.sh)
  22. export COLOSSUS_1_URL="http://${HOST_IP}:3333"
  23. export COLOSSUS_1_WORKER_ID=1
  24. export COLOSSUS_1_ACCOUNT_URI=//testing//worker//Storage//${COLOSSUS_1_WORKER_ID}
  25. export DISTRIBUTOR_1_URL="http://${HOST_IP}:3334"
  26. export DISTRIBUTOR_1_WORKER_ID=1
  27. export DISTRIBUTOR_1_ACCOUNT_URI=//testing//worker//Distribution//${DISTRIBUTOR_1_WORKER_ID}
  28. REUSE_KEYS=true ./run-test-scenario.sh init-storage-and-distribution
  29. # Start colossus & argus
  30. docker-compose -f ../../docker-compose.yml up -d colossus-1
  31. docker-compose -f ../../docker-compose.yml up -d distributor-1
  32. # Run combined tests reusing the existing keys
  33. REUSE_KEYS=true ./run-test-scenario.sh combined