Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Artifactory deploy #6

Merged
merged 6 commits into from
Sep 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM python:3.6.1-slim

RUN mkdir /root/.pip
RUN echo '[global]' > /root/.pip/pip.conf
RUN echo 'index-url = https://zefr.jfrog.io/zefr/api/pypi/pypi-local/simple' >> /root/.pip/pip.conf

RUN pip install pytest-testrail
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ make test - Run static analysis, tests with coverage
make quicktest - Run tests without coverage
make cleantest - Run tests cleaning tox environment first
make clean - Remove generated files
make deploy - Deploys to artifactory
endef

export HELP


.PHONY: all clean help lint quicktest requirements test

version ?= `cat VERSION`
build_loc ?= $(shell pwd)

all help:
@echo "$$HELP"
Expand All @@ -42,6 +45,14 @@ test: coverage lint
coverage:
tox -e coverage

deploy:
echo $(version)
docker run \
-v $(build_loc)/.pypirc:/root/.pypirc \
-v $(build_loc):/app \
python:3.6.1-slim \
bash -c "cd /app && python setup.py sdist upload -r local"

clean:
rm -rf .cache .coverage .tox pytests_py*-test.xml pytest_testrail.egg-info pytest_testrail.txt pytests_coverage.xml
find . -name '*.pyc' -delete
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
pytest-testrail
=================

[![Build Status](https://travis-ci.org/dubner/pytest-testrail.svg?branch=master)](https://travis-ci.org/dubner/pytest-testrail)


This is a pytest plugin for creating testruns based on pytest markers.
The results of the collected tests will also be updated against the testrun in TestRail.

Expand Down Expand Up @@ -71,3 +68,19 @@ Testruns can be named using the above flag, if this is not set a generated one w
--no-ssl-cert-check

This flag can be used prevent checking for a valid SSL certificate on TestRail host.

Deploy to Artifactory(Jfrog)
----------------------------

To publish to Artifactory, an entry for each repository needs to be made in ~/.pypirc:
Read more about [JFrog Publishing to Artifactory](https://www.jfrog.com/confluence/display/RTF/PyPI+Repositories#PyPIRepositories-PublishingtoArtifactory)

Example of ~/.pypirc file:
```
[distutils]
index-servers = local
[local]
repository: https://zefr.jfrog.io/zefr/api/pypi/pypi
username: <jfrog username>
password: <jfrog password>
```
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.14
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

setup(
name='pytest-testrail',
description='pytest plugin for creating TestRail runs and adding results',
description='pytest plugin for creating TestRail runs & adding results',
long_description=long_description,
version='0.0.13',
author='Allan Kilpatrick',
author_email='allanklp@gmail.com',
url='http://github.com/allankilpatrick/pytest-testrail/',
version='0.0.14',
author='Data-Test',
author_email='data-test@zefr.com',
url='https://github.com/ZEFR-INC/pytest-testrail',
packages=[
'pytest_testrail',
],
Expand Down