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.

57 lines
1.3 KiB

  1. #!/bin/bash -x
  2. # Helper for travis folding
  3. travis_fold() {
  4. local action=$1
  5. local name=$2
  6. echo -en "travis_fold:${action}:${name}\r"
  7. }
  8. N_JOBS=2
  9. OS=$TRAVIS_OS_NAME
  10. case $OS in
  11. linux)
  12. # Execute docker image on Linux
  13. # Stop previous session
  14. docker rm -f stormpy &>/dev/null
  15. # Run container
  16. set -e
  17. docker run -d -it --name stormpy --privileged movesrwth/$DOCKER
  18. # Copy local content into container
  19. docker exec stormpy mkdir /opt/stormpy
  20. docker cp . stormpy:/opt/stormpy
  21. travis_fold start install_dependencies
  22. docker exec stormpy apt-get update
  23. # Install dependencies for carl-parser
  24. docker exec stormpy apt-get install -qq -y maven uuid-dev
  25. # Install virtualenv
  26. docker exec stormpy apt-get install -qq -y python python3 virtualenv
  27. travis_fold end install_dependencies
  28. set +e
  29. # Execute main process
  30. docker exec stormpy bash -c "
  31. export N_JOBS=$N_JOBS;
  32. export OS=$OS;
  33. export STLARG=;
  34. export PYTHON=$PYTHON;
  35. export CONFIG=$CONFIG;
  36. export TASK=$TASK;
  37. cd /opt/stormpy;
  38. travis/build-helper.sh"
  39. exit $?
  40. ;;
  41. osx)
  42. echo "MacOS currently unsupported"
  43. exit 1
  44. ;;
  45. *)
  46. # Other OS
  47. echo "Unsupported OS: $OS"
  48. exit 1
  49. esac