forked from pgjdbc/pgjdbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (48 loc) · 1.81 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
sudo: false
language: java
dist: trusty
branches:
except:
- /^tmp\/.*/
- /^REL.*/
before_script:
- psql -c "create user test with password 'test'" -U postgres
- psql -c 'create database test owner test;' -U postgres
env:
global:
- secure: "NI+aqwRLLVt2feJdk/2ZEZnsaPyu+vOx8MahVxjz0UUVvRHVqxM5O1M0R53NJfEeIjflOzgZJwRLqgyl6dkdfjytRhaHWGptQdehV4cwNb+4epnn8WlpRzMac65zTQqnbGVtw9jissDQv6/Zl/+D+DMcU65BbFZkix40whILXG0="
before_install:
- unset _JAVA_OPTIONS # see https://github.com/travis-ci/travis-ci/issues/8408
script:
# make sure previous build artifacts are not used for subsequent builds
- rm -rf $HOME/.m2/repository/org/postgresql || true
- ./.travis/travis_build.sh
- ./.travis/travis_check_postgres_health.sh
# To avoid useless S3 cache updates (https://github.com/travis-ci/travis-ci/issues/1441#issuecomment-67607074)
#- mkdir /tmp/cache-trick
#- mv $HOME/.m2/repository/org/postgresql /tmp/cache-trick/
before_cache:
- F=CleanupGradleCache sh -x -c 'curl -O https://raw.githubusercontent.com/vlsi/cleanup-gradle-cache/v1.x/$F.java && javac -J-Xmx128m $F.java && java -Xmx128m $F'
- find $HOME/.ivy2 -name "ivydata-*.properties" -print0 | xargs -0 rm -v
- rm -rf $HOME/.ivy2/cache/org.postgresql/
- find $HOME/.sbt -name "*.lock" -print0 | xargs -0 rm -v
# No sense in caching current build artifacts
- rm -rf $HOME/.m2/repository/org/postgresql
# Skip default "mvn install" issued by Travis
# Root project cannot be compiled with older JDKs, so it makes sense to just skip the step
install: true
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.m2/repository
- $HOME/.ivy2/cache
- $HOME/.sbt/boot/
matrix:
fast_finish: true
include:
- addons:
postgresql: "9.6"
env:
- PG_VERSION=9.6
- TEST_CLIENTS=Y