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.

45 lines
889 B

  1. #!/bin/bash
  2. # Inspired by https://github.com/google/fruit
  3. set -e
  4. : ${N_JOBS:=2}
  5. if [ "$STL" != "" ]
  6. then
  7. STLARG="-stdlib=$STL"
  8. fi
  9. case $OS in
  10. linux)
  11. echo "Linux currently unsupported"
  12. exit 2
  13. # docker rm -f fruit &>/dev/null || true
  14. # docker run -d -it --name fruit --privileged polettimarco/fruit-basesystem:ubuntu-$UBUNTU
  15. # docker exec fruit mkdir fruit
  16. # docker cp . fruit:/fruit
  17. #
  18. # docker exec fruit bash -c "
  19. # export COMPILER=$COMPILER;
  20. # export N_JOBS=$N_JOBS;
  21. # export STLARG=$STLARG;
  22. # export ASAN_OPTIONS=$ASAN_OPTIONS;
  23. # export OS=$OS;
  24. # cd fruit; travis/postsubmit-helper.sh $1"
  25. # exit $?
  26. ;;
  27. osx)
  28. export COMPILER
  29. export N_JOBS
  30. export STLARG
  31. export ASAN_OPTIONS
  32. export OS
  33. travis/postsubmit-helper.sh "$@"
  34. exit $?
  35. ;;
  36. *)
  37. echo "Unsupported OS: $OS"
  38. exit 1
  39. esac