travis.sh 784 B

12345678910111213141516171819202122
  1. #! /bin/sh
  2. #
  3. # Travis build driver script:
  4. # - the regular CI runs, triggered by commits, run a script that builds
  5. # and installs calamares, and then runs the tests.
  6. # - the cronjob CI runs, triggered weekly, run a script that uses the
  7. # coverity tools to submit a build. This is slightly more resource-
  8. # intensive than the coverity add-on, but works on master.
  9. #
  10. D=`dirname "$0"`
  11. test -d "$D" || { echo "! No directory $D" ; exit 1 ; }
  12. test -x "$D/travis-continuous.sh" || { echo "! Missing -continuous" ; exit 1 ; }
  13. test -x "$D/travis-coverity.sh" || { echo "! Missing -coverity" ; exit 1 ; }
  14. test -f "$D/travis-config.sh" && . "$D/travis-config.sh"
  15. if test "$TRAVIS_EVENT_TYPE" = "cron" ; then
  16. exec "$D/travis-coverity.sh"
  17. else
  18. exec "$D/travis-continuous.sh"
  19. fi