From 654229b23255cfd30baa4c49773cc43cc18e7e19 Mon Sep 17 00:00:00 2001 From: Luo Tao Date: Thu, 24 May 2018 11:52:14 +0800 Subject: [PATCH] refine fluid deploy on teamcity --- cmake/inference_lib.cmake | 1 + paddle/scripts/paddle_build.sh | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/inference_lib.cmake b/cmake/inference_lib.cmake index b730ab43c49..3b13b215051 100644 --- a/cmake/inference_lib.cmake +++ b/cmake/inference_lib.cmake @@ -172,6 +172,7 @@ add_custom_target(inference_lib_dist DEPENDS ${inference_lib_dist_dep}) # paddle fluid version execute_process( COMMAND ${GIT_EXECUTABLE} log --pretty=format:%H -1 + WORKING_DIRECTORY ${PADDLE_SOURCE_DIR} OUTPUT_VARIABLE PADDLE_GIT_COMMIT) set(version_file ${FLUID_INSTALL_DIR}/version.txt) file(WRITE ${version_file} diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 83ba5eddd28..9d354a801a3 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -496,7 +496,9 @@ function gen_fluid_inference_lib() { ======================================== EOF make -j `nproc` inference_lib_dist - tar -cf ${PADDLE_ROOT}/build/fluid.tgz ${PADDLE_ROOT}/build/fluid_install_dir + cd ${PADDLE_ROOT}/build + mv fluid_install_dir fluid + tar -cf fluid.tgz fluid fi } -- GitLab