URL: https://github.com/freeipa/freeipa/pull/1293
Author: tiran
 Title: #1293: Run tox tests for PyPI packages on Travis
Action: opened

PR body:
"""
Obsoletes: #846 
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/1293/head:pr1293
git checkout pr1293
From bb19e4cc6f1e3b3e038fc692b059255c19c39266 Mon Sep 17 00:00:00 2001
From: Christian Heimes <chei...@redhat.com>
Date: Thu, 16 Nov 2017 12:27:16 +0100
Subject: [PATCH] Run tox tests for PyPI packages on Travis

Signed-off-by: Christian Heimes <chei...@redhat.com>
---
 .test_runner_config.yaml | 10 +++++++++-
 .travis.yml              |  2 ++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/.test_runner_config.yaml b/.test_runner_config.yaml
index 2b7e831b7a..2673e01826 100644
--- a/.test_runner_config.yaml
+++ b/.test_runner_config.yaml
@@ -28,7 +28,11 @@ steps:
   builddep:
   - rm -rf /var/cache/dnf/*
   - "dnf makecache || :"
-  - dnf builddep -y ${builddep_opts} --spec freeipa.spec.in --best --allowerasing
+  - >
+      dnf builddep -y ${builddep_opts}
+          --spec freeipa.spec.in
+          --best --allowerasing
+          -D "with_wheels 1"
   cleanup:
   - chown -R ${uid}:${gid} ${container_working_dir}
   - journalctl -b --no-pager > systemd_journal.log
@@ -53,6 +57,10 @@ steps:
   lint:
   - make PYTHON=/usr/bin/python2 V=0 lint
   - make PYTHON=/usr/bin/python3 V=0 pylint
+  tox:
+  - tox -e py27
+  - tox -e py36
+  - tox -e pypi
   prepare_tests:
   - echo ${server_password} | kinit admin && ipa ping
   - cp -r /etc/ipa/* ~/.ipa/
diff --git a/.travis.yml b/.travis.yml
index 140b32da57..e7721274ab 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -17,6 +17,8 @@ env:
     matrix:
         - TASK_TO_RUN="lint"
           TEST_RUNNER_CONFIG=".test_runner_config.yaml"
+        - TASK_TO_RUN="tox"
+          TEST_RUNNER_CONFIG=".test_runner_config.yaml"
         - TASK_TO_RUN="run-tests"
           PYTHON=/usr/bin/python2
           TEST_RUNNER_CONFIG=".test_runner_config.yaml"
_______________________________________________
FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org
To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org

Reply via email to