Ticket #27775: 0001-jenkins-tools-newsletter-and-styleguide.patch

File 0001-jenkins-tools-newsletter-and-styleguide.patch, 4.5 KB (added by hiro, 2 years ago)
  • new file slaves/linux/newsletter/build

    From 264ae811eadb700fb9c34ca5e8f43c4555aa0c37 Mon Sep 17 00:00:00 2001
    From: hiro <hiro@torproject.org>
    Date: Tue, 18 Sep 2018 21:30:57 +0200
    Subject: [PATCH] Add newsletter and styleguide builds
    
    ---
     slaves/linux/newsletter/build                      | 33 ++++++++++++++++++++++
     slaves/linux/newsletter/etc/build-depends          |  5 ++++
     slaves/linux/newsletter/setup/05-apt-get-update    |  1 +
     .../newsletter/setup/15-install-build-depends      |  1 +
     slaves/linux/styleguide/build                      | 32 +++++++++++++++++++++
     slaves/linux/styleguide/etc/build-depends          |  5 ++++
     slaves/linux/styleguide/setup/05-apt-get-update    |  1 +
     .../styleguide/setup/15-install-build-depends      |  1 +
     8 files changed, 79 insertions(+)
     create mode 100755 slaves/linux/newsletter/build
     create mode 100644 slaves/linux/newsletter/etc/build-depends
     create mode 120000 slaves/linux/newsletter/setup/05-apt-get-update
     create mode 120000 slaves/linux/newsletter/setup/15-install-build-depends
     create mode 100755 slaves/linux/styleguide/build
     create mode 100644 slaves/linux/styleguide/etc/build-depends
     create mode 120000 slaves/linux/styleguide/setup/05-apt-get-update
     create mode 120000 slaves/linux/styleguide/setup/15-install-build-depends
    
    diff --git a/slaves/linux/newsletter/build b/slaves/linux/newsletter/build
    new file mode 100755
    index 0000000..8937393
    - +  
     1#!/bin/bash
     2
     3set -e
     4set -x
     5set -u
     6
     7cleanup() {
     8    if [ -n "$base" ]; then
     9        cd "$base"
     10        rm -rf newsletter
     11    fi
     12}
     13base="$(pwd)"
     14
     15trap 'cleanup' EXIT
     16rm -rf RESULT
     17
     18newsletterrev=$(cd newletter && git rev-parse HEAD)
     19
     20(
     21cd newsletter
     22LC_ALL=C.UTF-8 lektor build -O public
     23mv public/rss/index.html public/rss/index.xml
     24mkdir -p project/trace
     25( date -u
     26  echo "Built on `hostname`."
     27  echo "Based on newletter:$newsletterrev."
     28) > project/trace/jenkins.torproject.org
     29)
     30
     31mkdir RESULT
     32tar -caf RESULT/newsletter.tar.gz newsletter/public
     33
  • new file slaves/linux/newsletter/etc/build-depends

    diff --git a/slaves/linux/newsletter/etc/build-depends b/slaves/linux/newsletter/etc/build-depends
    new file mode 100644
    index 0000000..3dc501f
    - +  
     1gettext
     2git
     3lektor
     4python3-babel
     5python3-setuptools
  • new file slaves/linux/newsletter/setup/05-apt-get-update

    diff --git a/slaves/linux/newsletter/setup/05-apt-get-update b/slaves/linux/newsletter/setup/05-apt-get-update
    new file mode 120000
    index 0000000..42fd078
    - +  
     1../../common/setup/05-apt-get-update
     2 No newline at end of file
  • new file slaves/linux/newsletter/setup/15-install-build-depends

    diff --git a/slaves/linux/newsletter/setup/15-install-build-depends b/slaves/linux/newsletter/setup/15-install-build-depends
    new file mode 120000
    index 0000000..6113be0
    - +  
     1../../common/setup/15-install-build-depends
     2 No newline at end of file
  • new file slaves/linux/styleguide/build

    diff --git a/slaves/linux/styleguide/build b/slaves/linux/styleguide/build
    new file mode 100755
    index 0000000..f4b5174
    - +  
     1#!/bin/bash
     2
     3set -e
     4set -x
     5set -u
     6
     7cleanup() {
     8    if [ -n "$base" ]; then
     9        cd "$base"
     10        rm -rf styleguide
     11    fi
     12}
     13base="$(pwd)"
     14
     15trap 'cleanup' EXIT
     16rm -rf RESULT
     17
     18supportrev=$(cd styleguide && git rev-parse HEAD)
     19
     20(
     21cd styleguide
     22LC_ALL=C.UTF-8 lektor build -O public
     23mkdir -p project/trace
     24( date -u
     25  echo "Built on `hostname`."
     26  echo "Based on styleguide:$styleguiderev."
     27) > project/trace/jenkins.torproject.org
     28)
     29
     30mkdir RESULT
     31tar -caf RESULT/styleguide.tar.gz styleguide/public
     32
  • new file slaves/linux/styleguide/etc/build-depends

    diff --git a/slaves/linux/styleguide/etc/build-depends b/slaves/linux/styleguide/etc/build-depends
    new file mode 100644
    index 0000000..3dc501f
    - +  
     1gettext
     2git
     3lektor
     4python3-babel
     5python3-setuptools
  • new file slaves/linux/styleguide/setup/05-apt-get-update

    diff --git a/slaves/linux/styleguide/setup/05-apt-get-update b/slaves/linux/styleguide/setup/05-apt-get-update
    new file mode 120000
    index 0000000..42fd078
    - +  
     1../../common/setup/05-apt-get-update
     2 No newline at end of file
  • new file slaves/linux/styleguide/setup/15-install-build-depends

    diff --git a/slaves/linux/styleguide/setup/15-install-build-depends b/slaves/linux/styleguide/setup/15-install-build-depends
    new file mode 120000
    index 0000000..6113be0
    - +  
     1../../common/setup/15-install-build-depends
     2 No newline at end of file