Skip to content

Commit

Permalink
Fix Docker build
Browse files Browse the repository at this point in the history
Change-Id: I8c85289b103f7ce808bb4c7da3b9e5ad88778bc2
  • Loading branch information
ibumarskov committed Nov 6, 2019
1 parent fd61251 commit 480ad49
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .gitreview
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gerrit]
host=review.gerrithub.io
port=29418
project=ibumarskov/qa_reports.git
project=ibumarskov/testrail_reporter.git
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM python:2
LABEL maintainer="Ilya Bumarskov <[email protected]>"

COPY etc /qa_reports/etc
COPY lib /qa_reports/lib
COPY qa_report.py /qa_reports/
COPY requirements.txt /qa_reports/
COPY etc /testrail_reporter/etc
COPY lib /testrail_reporter/lib
COPY reporter.py /testrail_reporter/
COPY requirements.txt /testrail_reporter/

WORKDIR /qa_reports
WORKDIR /testrail_reporter

RUN pip install -r requirements.txt
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# TestRail reporter
[![BuildStatus](https://travis-ci.com/ibumarskov/qa_reports.svg?branch=master)](https://travis-ci.com/ibumarskov/qa_reports)
[![BuildStatus](https://travis-ci.com/ibumarskov/testrail-reporter.svg?branch=master)](https://travis-ci.com/ibumarskov/testrail-reporter)
<p>The testrail-reporter repository contains scripts that allow to report test results to TestRail and analyze them.</p>

**Features**
Expand All @@ -13,8 +13,8 @@

## Know issues:
<ul>
<li>Doesn't have action for failed tearDownClass</li>
<li>Desn't support cases without section</li>
<li>Action for failed tearDownClass is't defined</li>
<li>Publishing of test cases without section isn't supported yet (WIP)</li>
</ul>

## Usage
Expand Down Expand Up @@ -73,11 +73,11 @@ Before use the script setup TestRail parameters:
-r TEST_RUN Testrail Test Run name.

## Run script from docker image
To run qa_reports against TestRail using docker image:
1. Pull docker image from [dockerhub](https://hub.docker.com/r/bumarskov/qa_reports)
`docker push bumarskov/qa_reports:<tagname>`
To run testrail_reporter against TestRail using docker image:
1. Pull docker image from [dockerhub](https://hub.docker.com/r/bumarskov/testrail_reporter)
`docker push bumarskov/testrail_reporter:<tagname>`
2. Run qa_report.py script to upload test results:
`docker run -v '<path_to_results>:/tmp/result.xml' -e $TESTRAIL_URL="<url>" -e $TESTRAIL_USER="<user>" -e $TESTRAIL_PASSWORD="<password>" qa_reports:<tagname> python qa_reports.py upload /tmp/<results_file> -p "<TestRail project>" -t "<TestRail test plan>" -r "<TestRail test run>" -s "<TestRail suite>" -c`
`docker run -v '<path_to_results>:/tmp/result.xml' -e $TESTRAIL_URL="<url>" -e $TESTRAIL_USER="<user>" -e $TESTRAIL_PASSWORD="<password>" testrail_reporter:<tagname> python reporter.py upload /tmp/<results_file> -p "<TestRail project>" -t "<TestRail test plan>" -r "<TestRail test run>" -s "<TestRail suite>" -c`

## How to build docker image
Before build docker image from local copy of repository remove all `.*pyc` files and `__pycache__` folder:
Expand Down

0 comments on commit 480ad49

Please sign in to comment.