The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

61 rader
1.6 KiB

  1. #!/bin/bash
  2. #
  3. # Update repository from master, including submodules, and rebuild bubble jar file
  4. #
  5. # Usage:
  6. #
  7. # git_update_bubble.sh [fast]
  8. #
  9. # fast : if the first argument is 'fast', then don't perform "clean" builds for submodules, just repackage/reinstall them
  10. #
  11. function die {
  12. if [[ -z "${SCRIPT}" ]] ; then
  13. echo 1>&2 "${1}"
  14. else
  15. echo 1>&2 "${SCRIPT}: ${1}"
  16. fi
  17. exit 1
  18. }
  19. FAST=${1}
  20. if [[ ! -z "${FAST}" && "${FAST}" == "fast" ]] ; then
  21. FAST=1
  22. else
  23. FAST=0
  24. fi
  25. BASE=$(cd $(dirname $0)/.. && pwd)
  26. cd ${BASE}
  27. git fetch || die "Error calling git fetch"
  28. git pull origin master || die "Error calling git pull origin master"
  29. git submodule update || die "Error in git submodule update"
  30. pushd utils/cobbzilla-parent
  31. git fetch && git checkout master && git pull origin master && mvn install || die "Error updating/installing cobbzilla-parent"
  32. popd
  33. UTIL_REPOS="
  34. cobbzilla-parent
  35. cobbzilla-utils
  36. restex
  37. templated-mail-sender
  38. cobbzilla-wizard
  39. abp-parser
  40. "
  41. pushd utils
  42. for repo in ${UTIL_REPOS} ; do
  43. if [[ ${FAST} -eq 1 ]] ; then
  44. pushd ${repo} && git fetch && git checkout master && git pull origin master && mvn -DskipTests=true -Dcheckstyle.skip=true install && popd || die "Error installing ${repo}"
  45. else
  46. pushd ${repo} && git fetch && git checkout master && git pull origin master && mvn -DskipTests=true -Dcheckstyle.skip=true clean install && popd || die "Error installing ${repo}"
  47. fi
  48. done
  49. popd
  50. if [[ ${FAST} -eq 1 ]] ; then
  51. mvn -DskipTests=true -Dcheckstyle.skip=true clean package || die "Error building bubble jar"
  52. else
  53. INSTALL_WEB=web mvn -DskipTests=true -Dcheckstyle.skip=true clean package || die "Error building bubble jar"
  54. fi