URL: https://github.com/freeipa/freeipa/pull/370
Author: frasertweedale
 Title: #370: [EXPERIMENT] ci: send build log to paste.fedoraproject.org
Action: synchronized

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/370/head:pr370
git checkout pr370
From 699907bb0fa31464369399788f81d0fa66ce2480 Mon Sep 17 00:00:00 2001
From: Fraser Tweedale <ftwee...@redhat.com>
Date: Thu, 5 Jan 2017 12:24:59 +1000
Subject: [PATCH] ci: send build log to paste.fedoraproject.org

---
 .travis.yml | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index e870213..9666468 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,15 +5,13 @@ env:
     global:
         - TEST_RUNNER_IMAGE="martbab/freeipa-fedora-test-runner:master-latest"
     matrix:
-        - TESTS_TO_RUN="test_xmlrpc/test_[a-k]*.py"
         - >
             TESTS_TO_RUN="test_cmdline
             test_install
             test_ipalib
             test_ipapython
             test_ipaserver
-            test_pkcs10
-            test_xmlrpc/test_[l-z]*.py"
+            test_pkcs10"
 before_install:
     - pip install pep8
     - >
@@ -37,6 +35,15 @@ script:
         --container-image ${TEST_RUNNER_IMAGE}
         --git-repo ${TRAVIS_BUILD_DIR}
         run-tests $test_set
+    - echo "Sending build log to paste.fedoraproject.org"
+    - >
+      curl -v https://paste.fedoraproject.org/ -H Expect:
+      --data api_submit=true
+      --data mode=json
+      --data paste_lang=text
+      --data paste_expire=86400
+      --data-urlencode paste_data@ci_results_${TRAVIS_BRANCH}.log
+      || echo "failed to submit paste"
 after_failure:
   - echo "Test runner output:"
   - tail -n 5000 ci_results_${TRAVIS_BRANCH}.log
-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to