forked from locationtech/geogig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (32 loc) · 1.27 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
cache:
directories:
- "$HOME/.m2"
language: java
jdk:
- oraclejdk8
before_install:
- cd src/parent
- sudo apt-get install libspatialite-dev
install: mvn -B -U install -DskipTests=true -Ptravis,postgres
before_script:
- psql -c 'create database geogig_tests;' -U postgres
- psql -c "create extension postgis" -U postgres -d geogig_tests
- psql -f ../geotools/src/test/resources/features/online/geogig_pg_test.sql -U postgres -d geogig_tests
- echo '[postgres]' > ~/.geogig-pg-backend-tests.properties
- echo 'enabled = true' >> ~/.geogig-pg-backend-tests.properties
- echo 'server = localhost' >> ~/.geogig-pg-backend-tests.properties
- echo 'database = geogig_tests' >> ~/.geogig-pg-backend-tests.properties
- echo 'user = postgres' >> ~/.geogig-pg-backend-tests.properties
- echo 'password = ' >> ~/.geogig-pg-backend-tests.properties
- echo '[database]' > ~/.geogig-pg-tests.properties
- echo 'server = localhost' >> ~/.geogig-pg-tests.properties
- echo 'database = geogig_tests' >> ~/.geogig-pg-tests.properties
- echo 'user = postgres' >> ~/.geogig-pg-tests.properties
- echo 'password = ' >> ~/.geogig-pg-tests.properties
script:
- mvn -B test -Ppostgres,experimental,online
services: postgresql
addons:
postgresql: "9.4"
notifications:
email: false