You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

build-java.sh 649 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/bash
  2. baseDir="/home/somuns/ci4s"
  3. #判断$1是否为all,如果是,则编译所有模块,否则只编译management-platform模块
  4. if [ "$1" == "all" ]; then
  5. buildDir=$baseDir
  6. elif [ "$1" == "manage" ]; then
  7. buildDir="$baseDir/ruoyi-modules/management-platform"
  8. elif [ "$1" == "auth" ]; then
  9. buildDir="$baseDir/ruoyi-auth"
  10. elif [ "$1" == "gateway" ]; then
  11. buildDir="$baseDir/ruoyi-gateway"
  12. elif [ "$1" == "system" ]; then
  13. buildDir="$baseDir/ruoyi-modules/ruoyi-system"
  14. fi
  15. echo "Building $buildDir"
  16. cd $buildDir && mvn clean install
  17. if [ $? -ne 0 ]; then
  18. echo "Failed to build ruoyi-modules"
  19. exit 1
  20. fi