tests_jc2server.sh 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/bash
  2. # TravisCI Tests
  3. # Server Management Script
  4. # Author: Daniel Gibbs
  5. # Website: https://gameservermanagers.com
  6. version="101716"
  7. #### Advanced Variables ####
  8. # Github Branch Select
  9. # Allows for the use of different function files
  10. # from a different repo and/or branch.
  11. githubuser="dgibbs64"
  12. githubrepo="linuxgsm"
  13. githubbranch="$TRAVIS_BRANCH"
  14. echo "================================="
  15. echo "TravisCI Tests"
  16. echo "Linux Game Server Manager"
  17. echo "by Daniel Gibbs"
  18. echo "https://gameservermanagers.com"
  19. echo "================================="
  20. echo ""
  21. echo "================================="
  22. echo "Server Tests"
  23. echo "Using: ${gamename}"
  24. echo "Testing Branch: $TRAVIS_BRANCH"
  25. echo "================================="
  26. echo ""
  27. echo "0.0 - Preparing Enviroment"
  28. echo "================================="
  29. echo "Description:"
  30. echo "Preparing Enviroment to run tests"
  31. echo "Downloading jc2server"
  32. wget https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/JustCause2/jc2server
  33. chmod +x jc2server
  34. echo "Create log dir"
  35. mkdir -p log/script/
  36. echo "Enable dev-debug"
  37. ./jc2server dev-debug