forked from spring-projects/spring-data-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (33 loc) · 1.5 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
language: java
os: linux
jobs:
include:
- env: JDK='OpenJDK 16'
before_install: wget https://github.com/sormuras/bach/raw/master/install-jdk.sh && . ./install-jdk.sh -f 16
addons:
apt:
sources:
- sourceline: 'deb http://packages.couchbase.com/releases/couchbase-server/community/deb/ xenial xenial/main'
key_url: 'http://packages.couchbase.com/ubuntu/couchbase.key'
packages:
- couchbase-server-community
services:
- redis
- docker
cache:
directories:
- $HOME/.m2
- download
# See https://issues.couchbase.com/browse/MB-26556
install:
- curl -X POST http://127.0.0.1:8091/pools/default -d memoryQuota=2000 -d indexMemoryQuota=256 -d ftsMemoryQuota=256
- curl -X POST http://127.0.0.1:8091/node/controller/setupServices -d "services=kv,index,n1ql,fts"
- curl -X POST http://127.0.0.1:8091/settings/indexes -d "storageMode=forestdb"
- curl -X POST http://127.0.0.1:8091/settings/web -d "username=Administrator&password=password&port=8091&"
- /opt/couchbase/bin/cbdocloader -c 127.0.0.1:8091 -u Administrator -p password -b travel-sample -m 256 -d /opt/couchbase/samples/travel-sample.zip
- /opt/couchbase/bin/couchbase-cli user-manage -c 127.0.0.1:8091 -u Administrator -p password --set --rbac-username=travel-sample --rbac-password=password --roles=admin --auth-domain local
script:
- cp -f settings.xml $HOME/.m2/settings.xml
- mvn -version
- java -version
- mvn clean test -U -Dsort -Dmaven.test.redirectTestOutputToFile=true -B -s settings.xml