diff options
| author | Oz Linden <oz@lindenlab.com> | 2013-05-21 12:45:44 -0400 | 
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2013-05-21 12:45:44 -0400 | 
| commit | c13d75dc386db883c35624a92ca452e04cc1365a (patch) | |
| tree | 8ff71b597fb8eb0c19e5e19d42e55430ef42ba9b | |
| parent | 0ebcb7e3fd1452d42b5ca48139f99a4fd632d235 (diff) | |
CHOP-947: create summary.json (really python) metadata file for TeamCity results
| -rwxr-xr-x | build.sh | 2 | ||||
| -rwxr-xr-x | indra/newview/CMakeLists.txt | 6 | ||||
| -rwxr-xr-x | indra/newview/viewer_manifest.py | 6 | 
3 files changed, 8 insertions, 6 deletions
| @@ -357,7 +357,7 @@ then      else        upload_item installer "$package" binary/octet-stream        upload_item quicklink "$package" binary/octet-stream -      [ -f summary.json ] && upload_item installer summary.json text/plain +      [ -f $build_dir/summary.json ] && upload_item installer $build_dir/summary.json text/plain        case "$last_built_variant" in        Release) diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt index 6e0bb161af..227644f14f 100755 --- a/indra/newview/CMakeLists.txt +++ b/indra/newview/CMakeLists.txt @@ -1247,8 +1247,12 @@ set(viewer_HEADER_FILES  source_group("CMake Rules" FILES ViewerInstall.cmake) +# the viewer_version.txt file created here is for passing to viewer_manifest +# the summary.json file is created for the benefit of the TeamCity builds, where +#   it is used to provide descriptive information to the build results page  add_custom_target(generate_viewer_version ALL -                  COMMAND echo "${VIEWER_SHORT_VERSION}.${VIEWER_VERSION_REVISION}" > ${CMAKE_CURRENT_BINARY_DIR}/viewer_version.txt +                  COMMAND printf '${VIEWER_SHORT_VERSION}.${VIEWER_VERSION_REVISION}' > ${CMAKE_CURRENT_BINARY_DIR}/viewer_version.txt +                  COMMAND printf '{"Type":"viewer","Version":"${VIEWER_SHORT_VERSION}.${VIEWER_VERSION_REVISION}"}' > ${CMAKE_BINARY_DIR}/summary.json                    COMMENT Generating viewer_version.txt for manifest processing                    ) diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py index bc473f6d62..2578c81224 100755 --- a/indra/newview/viewer_manifest.py +++ b/indra/newview/viewer_manifest.py @@ -154,10 +154,8 @@ class ViewerManifest(LLManifest):              # Files in the newview/ directory              self.path("gpu_table.txt") - -            # The summary.json file gets left in the base checkout dir by -            # build.sh. It's only created for a build.sh build. -            if not self.path2basename(os.path.join(os.pardir, os.pardir), "summary.json"): +            # The summary.json file gets left in the build directory by newview/CMakeLists.txt. +            if not self.path2basename(os.pardir, "summary.json"):                  print "No summary.json file"      def grid(self): | 
