From 5bcfee95d7dafcaabe4a92b3e8f61f829b15651a Mon Sep 17 00:00:00 2001 From: Areli Fuss Date: Sun, 24 Sep 2017 15:08:11 +0300 Subject: Add TOX file Add too.ini to support python verification task Change-Id: Ie30f34a6ff76046676ca479f05ce5ca4f8fc931e Issue-Id: VVP-25 Signed-off-by: Areli Fuss --- pom.xml | 118 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ tox.ini | 23 +++++++++++++ 2 files changed, 141 insertions(+) create mode 100644 pom.xml create mode 100644 tox.ini diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..97d3ac8 --- /dev/null +++ b/pom.xml @@ -0,0 +1,118 @@ + + 4.0.0 + + org.onap.oparent + oparent + 1.0.0-SNAPSHOT + + + org.openecomp.vvp + vvp-image-scanner + pom + 1.0.0-SNAPSHOT + vvp-image-scanner + + + + /content/sites/site/org/openecomp/vvp/${project.artifactId}/${project.version} + + ${maven.build.timestamp} + yyyy.MM.dd.HH.mm + + ${project.version}-${timestamp} + ${project.version}-latest + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + ${onap.nexus.url} + 176c31dfe190a + ecomp-staging + + + + io.fabric8 + docker-maven-plugin + 0.15.1 + + + + openecomp/vvp-image-scanner + vvp-image-scanner + + true + + ${docker.tag} + ${docker.latest.tag} + + ${project.basedir} + + + + + + + clean-images + pre-clean + + remove + + + true + + + + + generate-images + package + + build + + + + + push-images + deploy + + build + push + + + openecomp/vvp-image-scanner + + + + + + + + + ecomp-site + dav:${onap.nexus.url}${sitePath} + + + + + ecomp-releases + ECOMP Release Repository + ${onap.nexus.url}/content/repositories/releases/ + + + ecomp-snapshots + ECOMP Snapshot Repository + ${onap.nexus.url}/content/repositories/snapshots/ + + + ecomp-staging + ECOMP Staging Repository + ${onap.nexus.url}/content/repositories/staging/ + + + diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..6a671ea --- /dev/null +++ b/tox.ini @@ -0,0 +1,23 @@ +[tox] +skipsdist=True +envlist = py27,py3,style +setupdir = imagescanner/ + +[testenv] +distribute = False +commands = + {envpython} --version + pytest --version + pytest --cov=imagescanner +deps = flake8 + pytest-cov + pytest + +[testenv:style] +commands = flake8 + +[testenv:py27] +basepython=python2.7 + +[testenv:py3] +basepython=python3.6 -- cgit 1.2.3-korg