Open Source Tomb Raider Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

travis_after_success_linux.sh 875B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. cd build
  3. cd src
  4. echo "set basedir \".\"" > OpenRaider.ini
  5. echo "set pakdir \".\"" >> OpenRaider.ini
  6. echo "set audiodir \".\"" >> OpenRaider.ini
  7. echo "set datadir \"../../data\"" >> OpenRaider.ini
  8. echo "set font \"../../data/test.ttf\"" >> OpenRaider.ini
  9. xvfb-run -n 99 -s "-screen 0 1280x1024x24" ./OpenRaider &
  10. # Wait for OpenRaider to start
  11. wget http://imgur.com/tools/imgurbash.sh
  12. chmod a+x ./imgurbash.sh
  13. sleep 10
  14. import -window root -display :99.0 screenshot.png
  15. ./imgurbash.sh screenshot.png > url
  16. (
  17. echo "NICK OR-$(echo -n $TRAVIS_OS_NAME)-$(echo -n $CC)"
  18. echo "USER OR-$(echo -n $TRAVIS_OS_NAME)-$(echo -n $CC) 9 \* :OR-$(echo -n $TRAVIS_OS_NAME)-$(echo -n $CC)"
  19. sleep 5
  20. echo "JOIN #OpenRaider"
  21. sleep 5
  22. echo "PRIVMSG #OpenRaider :New Screenshot $(cat url | head -n 1)"
  23. sleep 5
  24. echo QUIT
  25. ) | nc chat.freenode.net 6667