]> granicus.if.org Git - esp-idf/commitdiff
add job to generate test report
authorYinling <heyinling@espressif.com>
Fri, 30 Sep 2016 05:58:02 +0000 (13:58 +0800)
committerAngus Gratton <angus@espressif.com>
Tue, 11 Oct 2016 06:23:46 +0000 (17:23 +1100)
.gitlab-ci.yml

index 2b421e77a0fe3011a407fca7c84c2835727a9f99..bd6e3ce5a4d318817fd825fb514aebd3e792ed8b 100644 (file)
@@ -88,6 +88,30 @@ test_build_system:
   script:
     - ./make/test_build_system.sh
 
+test_report:
+  stage: deploy
+  only:
+    - master
+    - triggers
+  tags:
+    - test_report
+  variables:
+    LOG_PATH: "$CI_PROJECT_DIR/$CI_BUILD_REF"
+    TEST_CASE_FILE_PATH: "$CI_PROJECT_DIR/components/test"
+    REPORT_PATH: "$CI_PROJECT_DIR/CI_Test_Report"
+  artifacts:
+    when: always
+    paths:
+      - $REPORT_PATH
+    expire_in: 6 mos
+  script:
+    - ls $LOG_PATH
+    # clone test bench
+    - git clone $GITLAB_SSH_SERVER/yinling/auto_test_script.git
+    - cd auto_test_script
+    # generate report
+    - python CITestReport.py -l $LOG_PATH -t $TEST_CASE_FILE_PATH -p $REPORT_PATH
+
 
 push_master_to_github:
   before_script: