-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
68 lines (51 loc) · 2.03 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
58
59
60
61
62
63
64
65
66
67
language: java
jdk:
- 'openjdk8'
env:
global:
- VERSION=0.0.1-SNAPSHOT
matrix:
cache:
directories:
- "$HOME/.m2"
- node_modules
sudo: required
services:
- postgresql
- docker
addons:
postgresql: '9.5'
apt:
packages:
- postgresql-9.5-postgis-2.3
install:
- sudo apt-get install -y ruby ruby-dev
- sudo gem install sass --version "=3.4.24"
- docker pull athenarc/triplegeo:1.6
- docker pull athenarc/fagi:1.2
- docker pull athenarc/limes:1.5
before_script:
# Setup database
- createuser -U postgres slipo
- createdb -U postgres -O slipo slipo-workbench-tests
- psql -c "CREATE EXTENSION postgis" -U postgres slipo-workbench-tests
- psql -f command/src/main/resources/db/scripts/initialize.sql -h localhost -U slipo slipo-workbench-tests
# Check database connectivity
- psql -h localhost -c "SELECT user" -U slipo slipo-workbench-tests
- psql -h localhost -c '\d' -U slipo slipo-workbench-tests
# Create directory hierarchy for tests
- mkdir -p ~/var/slipo-workbench/jobs ~/var/slipo-workbench/catalog/ ~/var/slipo-workbench/workflows/ ~/var/slipo-workbench/temp
# Create default configuration under src/main/resources/config
- cp command/config-example/* command/src/main/resources/config/
- cp rpc-server/config-example/* rpc-server/src/main/resources/config/
- cp webapp/config-example/* webapp/src/main/resources/config/
script:
- set -e
- mvn clean install
# Integration Tests
#- (cd rpc-server && mvn test -Dtest=eu.slipo.workbench.rpc.tests.integration.jobs.TriplegeoJobTests)
#- (cd rpc-server && mvn test -Dtest=eu.slipo.workbench.rpc.tests.integration.jobs.LimesJobTests)
#- (cd rpc-server && mvn test -Dtest=eu.slipo.workbench.rpc.tests.integration.jobs.FagiJobTests)
#- (cd rpc-server && mvn test -Dtest=eu.slipo.workbench.rpc.tests.integration.repository.DefaultProcessRepositoryTests)
#- (cd rpc-server && mvn test -Dtest=eu.slipo.workbench.rpc.tests.integration.repository.DefaultResourceRepositoryTests)
#- (cd rpc-server && mvn test -Dtest=eu.slipo.workbench.rpc.tests.integration.service.DefaultProcessOperatorTests)