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

PR body:
This commit is just to see if we can ship our build logs off travis
to a pastebin.

If we can, we can refine the approach to only ship logs when the build
broke, provide better output about where to find them, etc.

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 a86cf41441919797fad5e59d21334746b6baad77 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..55d5b10 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_d...@redhatitroot.pem
+      || echo "failed to submit paste"
   - echo "Test runner output:"
   - tail -n 5000 ci_results_${TRAVIS_BRANCH}.log
Manage your subscription for the Freeipa-devel mailing list:
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to