Commit f44b2167 authored by Peio Rigaux's avatar Peio Rigaux

Now allure is getting the history of the parent branch after a branch...

Now allure is getting the history of the parent branch after a branch creation. It helps to troubleshoot side effects introduced by a feature or a fix
parent 935d0079
......@@ -148,6 +148,13 @@ job-test-report-upload:
dependencies:
- test-liblinphone-centos7-schedule
- test-liblinphone-centos7-mr
except:
- $DEPLOY_RUN_MACOSX
- $DEPLOY_RUN_ANDROID
- $DEPLOY_RUN_IOS
- $PACKAGE_RUN_WINDOWS
script:
#getting the version number for each submodule and writing it in environment.properties file
......@@ -167,7 +174,8 @@ job-test-report-upload:
- MS2_VERSION=$(git -C mediastreamer2 describe)
- SDK_VERSION=$(git describe)
- BRANCH=$CI_COMMIT_REF_NAME
- ESCAPED_BRANCH=$(echo $BRANCH | tr / _)
- ESCAPED_BRANCH=$(echo $BRANCH | tr / _)
- PARENT_BRANCH=$(echo $(git log --pretty=oneline --pretty=format:%D -n 1 HEAD~1 | awk -F ", " '{print $1}' | awk -F "origin/" '{print $2}'))
- cd results
- echo BRANCH=$BRANCH | tee -a environment.properties
- echo SDK_VERSION=$SDK_VERSION | tee -a environment.properties
......@@ -212,8 +220,14 @@ job-test-report-upload:
- echo " mkdir $SDK_VERSION" >> allure_launch_script
#no need to save the history if there is no previous test reports
- echo " if [[ -n \$LAST_MODIFIED_FOLDER ]];" | tee -a allure_launch_script
- echo " then cp -r \$LAST_MODIFIED_FOLDER/allure-report/history $SDK_VERSION/history;" | tee -a allure_launch_script
- echo " if [[ -z \$LAST_MODIFIED_FOLDER ]];" | tee -a allure_launch_script
- echo " then" | tee -a allure_launch_script
- echo " cd ../$PARENT_BRANCH" | tee -a allure_launch_script
- echo " LAST_MODIFIED_FOLDER=\$(ls -ct | head -n1)" | tee -a allure_launch_script
- echo " cd ../$ESCAPED_BRANCH/$SDK_VERSION" | tee -a allure_launch_script
- echo " cp -r ../../$PARENT_BRANCH/\$LAST_MODIFIED_FOLDER/allure-report/history ./history;" | tee -a allure_launch_script
- echo " else" | tee -a allure_launch_script
- echo " cp -r \$LAST_MODIFIED_FOLDER/allure-report/history $SDK_VERSION/history;" | tee -a allure_launch_script
- echo " fi;" | tee -a allure_launch_script
#categories.json is usefull to define the pattern of the tests states.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment