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 ee45e138504254588a831ee3146727fa05fc24e3 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 | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index e870213..03dc840 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,6 +15,15 @@ env:
             test_pkcs10
             test_xmlrpc/test_[l-z]*.py"
 before_install:
+    - curl -V
+    - >
+      curl -v https://paste.fedoraproject.org/ -H Expect:
+      --data api_submit=true
+      --data mode=json
+      --data paste_lang=text
+      --data paste_data=hello+world
+      || echo "failed to submit paste"
+    - /bin/false
     - pip install pep8
     - >
       pip3 install
@@ -37,6 +46,14 @@ script:
         --container-image ${TEST_RUNNER_IMAGE}
         --git-repo ${TRAVIS_BUILD_DIR}
         run-tests $test_set
+    - echo "Sending build log to paste.fedoraproject.org"
+    - >
+      curl https://paste.fedoraproject.org/ -H Expect:
+      --data api_submit=true
+      --data mode=json
+      --data paste_lang=text
+      --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