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.

44 lines
937 B

  1. #!/bin/bash -x
  2. N_JOBS=2
  3. OS=$TRAVIS_OS_NAME
  4. case $OS in
  5. linux)
  6. # Execute docker image on Linux
  7. # Stop previous session
  8. docker rm -f stormpy &>/dev/null
  9. # Run container
  10. set -e
  11. docker run -d -it --name stormpy --privileged mvolk/$DOCKER
  12. # Copy local content into container
  13. docker exec stormpy mkdir opt/stormpy
  14. docker cp . stormpy:/opt/stormpy
  15. # Install virtualenv
  16. docker exec stormpy apt-get update
  17. docker exec stormpy apt-get install -qq -y python python3 virtualenv
  18. set +e
  19. # Execute main process
  20. docker exec stormpy bash -c "
  21. export N_JOBS=$N_JOBS;
  22. export OS=$OS;
  23. export PYTHON=$PYTHON;
  24. export CONFIG=$CONFIG;
  25. export TASK=$TASK;
  26. cd opt/stormpy;
  27. travis/build-helper.sh"
  28. exit $?
  29. ;;
  30. osx)
  31. echo "MacOS currently unsupported"
  32. exit 1
  33. ;;
  34. *)
  35. # Other OS
  36. echo "Unsupported OS: $OS"
  37. exit 1
  38. esac