Skip to content

Commit

Permalink
test: add PostgreSQL HEAD to pgjdbc regression test matrix (#613)
Browse files Browse the repository at this point in the history
closes #561
  • Loading branch information
vlsi committed Aug 1, 2016
1 parent ba14509 commit 65a32ff
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Expand Up @@ -2,7 +2,8 @@ sudo: false
language: java language: java


before_script: before_script:
- test "x$XA" == 'x' || ./travis_install_dependencies.sh - test "x$XA" == 'x' || ./.travis/travis_install_dependencies.sh
- test "x$PG_VERSION" != "xHEAD" || ./.travis/travis_install_head_postgres.sh
- psql -U postgres -c "create user test with password 'test';" - psql -U postgres -c "create user test with password 'test';"
- psql -c 'create database test owner test;' -U postgres - psql -c 'create database test owner test;' -U postgres
- echo "MAVEN_OPTS='-Xmx1g -Dgpg.skip=true'" > ~/.mavenrc - echo "MAVEN_OPTS='-Xmx1g -Dgpg.skip=true'" > ~/.mavenrc
Expand All @@ -25,7 +26,7 @@ script:
- export JDK9_HOME=/usr/lib/jvm/java-9-oracle - export JDK9_HOME=/usr/lib/jvm/java-9-oracle
- test -d "${JDK9_HOME}" || export JDK9_HOME=$(jdk_switcher home oraclejdk8) - test -d "${JDK9_HOME}" || export JDK9_HOME=$(jdk_switcher home oraclejdk8)
- envsubst < toolchains.xml > ~/.m2/toolchains.xml - envsubst < toolchains.xml > ~/.m2/toolchains.xml
- ./travis_build.sh - ./.travis/travis_build.sh
# To avoid useless S3 cache updates (https://github.com/travis-ci/travis-ci/issues/1441#issuecomment-67607074) # To avoid useless S3 cache updates (https://github.com/travis-ci/travis-ci/issues/1441#issuecomment-67607074)
#- mkdir /tmp/cache-trick #- mkdir /tmp/cache-trick
#- mv $HOME/.m2/repository/org/postgresql /tmp/cache-trick/ #- mv $HOME/.m2/repository/org/postgresql /tmp/cache-trick/
Expand Down Expand Up @@ -81,6 +82,9 @@ matrix:
- COVERAGE=Y - COVERAGE=Y
- MCENTRAL=Y - MCENTRAL=Y
- JDOC=Y - JDOC=Y
- jdk: oraclejdk8
env:
- PG_VERSION=HEAD
- jdk: openjdk7 - jdk: openjdk7
addons: addons:
postgresql: "9.4" postgresql: "9.4"
Expand Down Expand Up @@ -130,4 +134,4 @@ matrix:


# Deploy snapshots to Maven Central # Deploy snapshots to Maven Central
after_success: after_success:
- "test $MCENTRAL == 'Y' && ./travis_deploy.sh" - "test $MCENTRAL == 'Y' && ./.travis/travis_deploy.sh"
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions .travis/travis_install_head_postgres.sh
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -x -e

git clone --depth=1 https://github.com/postgres/postgres.git
cd postgres

PREFIX=$HOME/pg_head

./configure --prefix=$PREFIX

# Build PostgreSQL from source and start the DB
make && make install && $PREFIX/bin/pg_ctl -D $PREFIX/data initdb && $PREFIX/bin/pg_ctl -D $PREFIX/data -l postgres.log start

0 comments on commit 65a32ff

Please sign in to comment.