8000 Travis-CI and Appveyor integration · ololobus/postgres@7cce49f · GitHub
[go: up one dir, main page]

Skip to content

Commit 7cce49f

Browse files
committed
Travis-CI and Appveyor integration
1 parent 08d25d7 commit 7cce49f

File tree

5 files changed

+128
-0
lines changed

5 files changed

+128
-0
lines changed

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
language: c
2+
compiler: gcc
3+
dist: xenial
4+
addons:
5+
apt:
6+
packages:
7+
- libreadline-dev
8+
- zlib1g-dev
9+
install:
10+
- curl -L https://cpanmin.us | perl - App::cpanminus
11+
- ~/perl5/bin/cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
12+
- ~/perl5/bin/cpanm IPC::Run
13+
- ~/perl5/bin/cpanm Test::More
14+
- ~/perl5/bin/cpanm Time::HiRes
15+
script:
16+
- export CFLAGS="-Og"
17+
- ./configure --enable-debug --enable-cassert --enable-depend --enable-tap-tests BISONFLAGS="-v"
18+
- make check-world

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# PostgreSQL mirror for development purposes
2+
3+
[![Travis-ci Status](https://travis-ci.org/ololobus/postgres.svg?branch=master)](https://travis-ci.org/ololobus/postgres)
4+
[![Appveyor Status](https://ci.appveyor.com/api/projects/status/f42li9kqurfc3gjt/branch/master?svg=true)](https://ci.appveyor.com/project/ololobus/postgres)
5+
6+
Mirror of the official PostgreSQL GIT repository. Note that this is just a *mirror* - we don't work with pull requests on github. To contribute, please see https://wiki.postgresql.org/wiki/Submitting_a_Patch
7+
8+
This directory contains the source code distribution of the PostgreSQL
9+
database management system.
10+
11+
PostgreSQL is an advanced object-relational database management system
12+
that supports an extended subset of the SQL standard, including
13+
transactions, foreign keys, subqueries, triggers, user-defined types
14+
and functions. This distribution also contains C language bindings.
15+
16+
PostgreSQL has many language interfaces, many of which are listed here: https://www.postgresql.org/download
17+
18+
See the file INSTALL for instructions on how to build and install
19+
PostgreSQL. That file also lists supported operating systems and
20+
hardware platforms and contains information regarding any other
21+
software packages that are required to build or run the PostgreSQL
22+
system. Copyright and license information can be found in the
23+
file COPYRIGHT. A comprehensive documentation set is included in this
24+
distribution; it can be read as described in the installation
25+
instructions.
26+
27+
The latest version of this software may be obtained at
28+
https://www.postgresql.org/download/. For more information look at our
29+
web site located at https://www.postgresql.org/.

appveyor.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# appveyor.yml
2+
install:
3+
- appveyor-retry cinst winflexbison
4+
- '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64'
5+
- '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_amd64'
6+
7+
before_build:
8+
- rename c:\ProgramData\chocolatey\bin\win_flex.exe flex.exe
9+
- rename c:\ProgramData\chocolatey\bin\win_bison.exe bison.exe
10+
- perl buildsetup.pl
11+
12+
build:
13+
project: pgsql.sln
14+
15+
test_script:
16+
- cd src\tools\msvc && vcregress check
17+
18+
on_failure:
19+
- perl dumpregr.pl
20+
21+
configuration:
22+
- Release

buildsetup.pl

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# First part of postgres build.pl, just doesn't run msbuild
2+
3+
use strict;
4+
5+
BEGIN
6+
{
7+
8+
chdir("../../..") if (-d "../msvc" && -d "../../../src");
9+
10+
}
11+
12+
use lib "src/tools/msvc";
13+
14+
use Cwd;
15+
16+
use Mkvcbuild;
17+
18+
# buildenv.pl is for specifying the build environment settings
19+
# it should contain lines like:
20+
# $ENV{PATH} = "c:/path/to/bison/bin;$ENV{PATH}";
21+
22+
if (-e "src/tools/msvc/buildenv.pl")
23+
{
24+
do "src/tools/msvc/buildenv.pl";
25+
}
26+
elsif (-e "./buildenv.pl")
27+
{
28+
do "./buildenv.pl";
29+
}
30+
31+
# set up the project
32+
our $config;
33+
do "config_default.pl";
34+
do "config.pl" if (-f "src/tools/msvc/config.pl");
35+
36+
# print "PATH: $_\n" foreach (split(';',$ENV{PATH}));
37+
38+
Mkvcbuild::mkvcbuild($config);

dumpregr.pl

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
use strict;
2+
use warnings FATAL => qw(all);
3+
4+
use File::Find;
5+
6+
my $Target = "regression.diffs";
7+
8+
find(\&dump, "src");
9+
10+
sub dump {
11+
if ($_ eq $Target) {
12+
my $path = $File::Find::name;
13+
print "=== \$path ===\\n";
14+
open(my $fh, "<", $_) || die "wtf";
15+
for (1..1000) {
16+
my $line = <$fh>;
17+
last unless defined $line;
18+
print $line;
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)
0