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.

41 lines
820 B

  1. #!/bin/bash -x
  2. N_JOBS=2
  3. TIMEOUT_LINUX=2300
  4. OS=$TRAVIS_OS_NAME
  5. case $OS in
  6. linux)
  7. # Execute docker image on Linux
  8. # Stop previous session
  9. docker rm -f carl &>/dev/null
  10. # Run container
  11. set -e
  12. docker run -d -it --name carl --privileged movesrwth/storm-basesystem:$LINUX
  13. # Copy local content into container
  14. docker cp travis/build_carl_helper.sh carl:/opt/
  15. set +e
  16. # Execute main process
  17. docker exec carl bash -c "
  18. export CONFIG=$CONFIG;
  19. export COMPILER=$COMPILER;
  20. export N_JOBS=$N_JOBS;
  21. export STLARG=;
  22. export OS=$OS;
  23. cd /opt/;
  24. timeout $TIMEOUT_LINUX ./build_carl_helper.sh"
  25. ;;
  26. osx)
  27. echo "Building carl on Mac OSX not used."
  28. exit 1
  29. ;;
  30. *)
  31. # Unknown OS
  32. echo "Unsupported OS: $OS"
  33. exit 1
  34. esac