Merge "leverage tox to trigger verify job in reporting/TestAPI"
authorSerena Feng <feng.xiaowei@zte.com.cn>
Thu, 13 Jul 2017 14:32:13 +0000 (14:32 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Thu, 13 Jul 2017 14:32:13 +0000 (14:32 +0000)
1  2 
jjb/releng/automate.yml

diff --combined jjb/releng/automate.yml
      builders:
          - shell: |
              cd ./utils/test/{module}/
-             bash run_test.sh
+             tox
              cp *.xml $WORKSPACE
  
      publishers:
-         - junit:
-             results: nosetests.xml
-         - cobertura:
-             report-file: "coverage.xml"
-             only-stable: "true"
-             health-auto-update: "false"
-             stability-auto-update: "false"
-             zoom-coverage-chart: "true"
-             targets:
-                 - files:
-                     healthy: 10
-                     unhealthy: 20
-                     failing: 30
-                 - method:
-                     healthy: 50
-                     unhealthy: 40
-                     failing: 30
+         - publish-coverage
  
  - job-template:
      name: '{module}-automate-{stream}'
      name: 'testapi-automate-docker-deploy-macro'
      builders:
          - shell: |
 -            bash ./jjb/releng/docker-deploy.sh 'sudo docker run -dti -p 8082:8000 -e mongodb_url=mongodb://172.17.0.1:27017 -e base_url=http://testresults.opnfv.org/test opnfv/testapi' "http://testresults.opnfv.org/test/swagger/APIs"
 +            bash ./jjb/releng/docker-deploy.sh "sudo docker run -dti -p 8082:8000
 +            -e mongodb_url=mongodb://172.17.0.1:27017
 +            -e base_url=http://testresults.opnfv.org/test opnfv/testapi" \
 +            "http://testresults.opnfv.org/test/swagger/APIs" "testapi"
 +
  - builder:
      name: 'reporting-automate-docker-deploy-macro'
      builders:
          - shell: |
 -            bash ./jjb/releng/docker-deploy.sh 'sudo docker run -itd -p 8084:8000 opnfv/reporting' "http://testresults.opnfv.org/reporting2/reporting/index.html"
 +            bash ./jjb/releng/docker-deploy.sh "sudo docker run -itd -p 8084:8000 opnfv/reporting" \
 +            "http://testresults.opnfv.org/reporting2/reporting/index.html" "reporting"
  
  - builder:
      name: mongodb-backup