Skip to content

Commit 18cb0fe

Browse files
committed
Add travis.yml so pull requests are automatically tested via Travis
1 parent 7d3235b commit 18cb0fe

File tree

4 files changed

+89
-0
lines changed

4 files changed

+89
-0
lines changed

.travis.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
sudo: false
2+
language: java
3+
4+
before_script:
5+
- ./.travis/make_postgres.sh
6+
- psql -U postgres -c "create user test with password 'test';"
7+
- psql -c 'create database test owner test;' -U postgres
8+
- echo "MAVEN_OPTS='-Xmx1g -Dgpg.skip=true'" > ~/.mavenrc
9+
- psql test -c 'CREATE EXTENSION hstore;' -U postgres
10+
11+
script:
12+
# make sure previous build artifacts are not used for subsequent builds
13+
- ./.travis/travis_build.sh
14+
15+
before_cache:
16+
# No sense in caching current build artifacts
17+
rm -rf $HOME/.m2/repository/org/postgresql
18+
19+
# Skip default "mvn install" issued by Travis
20+
# Root project cannot be compiled with older JDKs, so it makes sense to just skip the step
21+
install: true
22+
23+
cache:
24+
directories:
25+
- '$HOME/.m2/repository'
26+
27+
matrix:
28+
fast_finish: true
29+
include:
30+
- env:
31+
- TEST=PG_CHECK
32+
script: make check
33+
- env:
34+
- TEST=PG_CHECK_WORLD
35+
script: PGHOST=localhost make check-world
36+
- jdk: oraclejdk8
37+
env:
38+
- TEST=pgjdbc
39+
script: ./.travis/pgjdbc_check.sh
40+
41+
branches:
42+
only:
43+
- travis

.travis/make_postgres.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
set -x -e
3+
4+
PREFIX=$HOME/pg_head
5+
6+
./configure --prefix=$PREFIX
7+
8+
# Build PostgreSQL from source and start the DB
9+
make && make install && $PREFIX/bin/pg_ctl -D $PREFIX/data initdb && $PREFIX/bin/pg_ctl -D $PREFIX/data -l postgres.log start

.travis/pgjdbc_check.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
set -x -e
3+
4+
git clone --depth=1 https://github.com/pgjdbc/pgjdbc.git
5+
6+
cd pgjdbc
7+
8+
mvn clean package -B -V

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[![Build Status](https://travis-ci.org/vlsi/postgres.svg?branch=travis)](https://travis-ci.org/vlsi/postgres)
2+
3+
PostgreSQL Database Management System
4+
=====================================
5+
6+
This directory contains the source code distribution of the PostgreSQL
7+
database management system.
8+
9+
PostgreSQL is an advanced object-relational database management system
10+
that supports an extended subset of the SQL standard, including
11+
transactions, foreign keys, subqueries, triggers, user-defined types
12+
and functions. This distribution also contains C language bindings.
13+
14+
PostgreSQL has many language interfaces, many of which are listed here:
15+
16+
http://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+
http://www.postgresql.org/download/. For more information look at our
29+
web site located at http://www.postgresql.org/.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy