Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save macdice/6161b5a804426e3fa457d4fe96ee0bbd to your computer and use it in GitHub Desktop.
Save macdice/6161b5a804426e3fa457d4fe96ee0bbd to your computer and use it in GitHub Desktop.
PG CI
From 8fd0b901f771b730159184890125ea0fc02a2261 Mon Sep 17 00:00:00 2001
From: Thomas Munro <thomas.munro@enterprisedb.com>
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 | 23 +++++++++++++++++++++++
2 files changed, 69 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..c0da8640198
--- /dev/null
+++ b/appveyor.yml
@@ -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.githubusercontent.com/adunstan/7f18e5db33bb2d73f69ff8c9337a4e6c/raw/buildsetup.pl
+ - perl buildsetup.pl
+
+build:
+ project: pgsql.sln
+
+test_script:
+ - cd src\tools\msvc && vcregress check
+
+configuration:
+ - Release
--
2.14.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment