Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save macdice/6161b5a804426e3fa457d4fe96ee0bbd to your computer and use it in GitHub Desktop.

Select an option

Save macdice/6161b5a804426e3fa457d4fe96ee0bbd to your computer and use it in GitHub Desktop.

Revisions

  1. macdice revised this gist Oct 13, 2017. 1 changed file with 12 additions and 13 deletions.
    25 changes: 12 additions & 13 deletions 0001-Example-continuous-integration-control-files.patch
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    From d8ae8c647bc2ba779a184f6602d1bdd3b2b6bfd9 Mon Sep 17 00:00:00 2001
    From 8fd0b901f771b730159184890125ea0fc02a2261 Mon Sep 17 00:00:00 2001
    From: Thomas Munro <[email protected]>
    Date: Thu, 12 Oct 2017 16:30:24 +1300
    Subject: [PATCH] Example continuous integration control files.
    @@ -9,8 +9,8 @@ included in a patch submission, it's just for testing development branches.
    https://wiki.postgresql.org/wiki/Continuous_Integration
    ---
    .travis.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++
    appveyor.yml | 24 ++++++++++++++++++++++++
    2 files changed, 70 insertions(+)
    appveyor.yml | 23 +++++++++++++++++++++++
    2 files changed, 69 insertions(+)
    create mode 100644 .travis.yml
    create mode 100644 appveyor.yml

    @@ -68,32 +68,31 @@ index 00000000000..87dd6c47f18
    + done
    diff --git a/appveyor.yml b/appveyor.yml
    new file mode 100644
    index 00000000000..6d4cc5cf101
    index 00000000000..c0da8640198
    --- /dev/null
    +++ b/appveyor.yml
    @@ -0,0 +1,24 @@
    +# Contents of this file from:
    +#
    +# https://gist.github.com/adunstan/7f18e5db33bb2d73f69ff8c9337a4e6c
    +#
    +# As discussed here:
    @@ -0,0 +1,23 @@
    +# Contents of this file based on:
    +#
    +# https://www.postgresql.org/message-id/flat/CAEepm%3D16YRw9knaXDBfs-aK%3DZNNKWAeZW%2BKvoSCQJm8uRqfUjg%40mail.gmail.com
    +
    +# appveyor.yml
    +install:
    + - cinst winflexbison
    + - '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64'
    +
    +
    +before_build:
    + - rename c:\ProgramData\chocolatey\bin\win_flex.exe flex.exe
    + - rename c:\ProgramData\chocolatey\bin\win_bison.exe bison.exe
    + - curl -S -O https://gist.github.com/adunstan/7f18e5db33bb2d73f69ff8c9337a4e6c/raw/buildsetup.pl
    + - perl buildsetup.pl
    +
    +
    +build:
    + project: pgsql.sln
    +
    +
    +test_script:
    + - cd src\tools\msvc && vcregress check
    +
    +configuration:
    + - Release
    --
  2. macdice created this gist Oct 13, 2017.
    101 changes: 101 additions & 0 deletions 0001-Example-continuous-integration-control-files.patch
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,101 @@
    From d8ae8c647bc2ba779a184f6602d1bdd3b2b6bfd9 Mon Sep 17 00:00:00 2001
    From: Thomas Munro <[email protected]>
    Date: Thu, 12 Oct 2017 16:30:24 +1300
    Subject: [PATCH] Example continuous integration control files.

    This commit adds continuous integration control files. It shouldn't be
    included in a patch submission, it's just for testing development branches.

    https://wiki.postgresql.org/wiki/Continuous_Integration
    ---
    .travis.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++
    appveyor.yml | 24 ++++++++++++++++++++++++
    2 files changed, 70 insertions(+)
    create mode 100644 .travis.yml
    create mode 100644 appveyor.yml

    diff --git a/.travis.yml b/.travis.yml
    new file mode 100644
    index 00000000000..87dd6c47f18
    --- /dev/null
    +++ b/.travis.yml
    @@ -0,0 +1,46 @@
    +sudo: required
    +addons:
    + apt:
    + packages:
    + - gdb
    + - lcov
    + - libipc-run-perl
    + - libperl-dev
    + - libpython-dev
    + - tcl-dev
    + - libldap2-dev
    + - libicu-dev
    + - docbook
    + - docbook-dsssl
    + - docbook-xsl
    + - libxml2-utils
    + - openjade1.3
    + - opensp
    + - xsltproc
    +language: c
    +cache: ccache
    +before_install:
    + - echo '/tmp/%e-%s-%p.core' | sudo tee /proc/sys/kernel/core_pattern
    + - echo "deb http://archive.ubuntu.com/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/xenial.list > /dev/null
    + - |
    + sudo tee -a /etc/apt/preferences.d/trusty > /dev/null <<EOF
    + Package: *
    + Pin: release n=xenial
    + Pin-Priority: 1
    +
    + Package: make
    + Pin: release n=xenial
    + Pin-Priority: 500
    + EOF
    + - sudo apt-get update && sudo apt-get install make
    +script: ./configure --enable-debug --enable-cassert --enable-coverage --enable-tap-tests --with-tcl --with-python --with-perl --with-ldap --with-icu && make -j4 all contrib docs && make -Otarget -j3 check-world
    +#after_success:
    +# - bash <(curl -s https://codecov.io/bash)
    +after_failure:
    + - for f in ` find . -name regression.diffs ` ; do echo "========= Contents of $f" ; head -1000 $f ; done
    + - |
    + for corefile in $(find /tmp/ -name '*.core' 2>/dev/null) ; do
    + binary=$(gdb -quiet -core $corefile -batch -ex 'info auxv' | grep AT_EXECFN | perl -pe "s/^.*\"(.*)\"\$/\$1/g")
    + echo dumping $corefile for $binary
    + gdb --batch --quiet -ex "thread apply all bt full" -ex "quit" $binary $corefile
    + done
    diff --git a/appveyor.yml b/appveyor.yml
    new file mode 100644
    index 00000000000..6d4cc5cf101
    --- /dev/null
    +++ b/appveyor.yml
    @@ -0,0 +1,24 @@
    +# Contents of this file from:
    +#
    +# https://gist.github.com/adunstan/7f18e5db33bb2d73f69ff8c9337a4e6c
    +#
    +# As discussed here:
    +#
    +# https://www.postgresql.org/message-id/flat/CAEepm%3D16YRw9knaXDBfs-aK%3DZNNKWAeZW%2BKvoSCQJm8uRqfUjg%40mail.gmail.com
    +
    +# appveyor.yml
    +install:
    + - cinst winflexbison
    + - '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64'
    +
    +before_build:
    + - rename c:\ProgramData\chocolatey\bin\win_flex.exe flex.exe
    + - rename c:\ProgramData\chocolatey\bin\win_bison.exe bison.exe
    + - curl -S -O https://gist.github.com/adunstan/7f18e5db33bb2d73f69ff8c9337a4e6c/raw/buildsetup.pl
    + - perl buildsetup.pl
    +
    +build:
    + project: pgsql.sln
    +
    +configuration:
    + - Release
    --
    2.14.1