From 8fd0b901f771b730159184890125ea0fc02a2261 Mon Sep 17 00:00:00 2001 From: Thomas Munro 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 </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.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.14.1