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 2135ba13c4ad9653e22d817caea82d754a8034b6 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 | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index e870213..0324f8d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -37,6 +37,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