forked from acaprojects/couchbase-orm
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
36 lines (36 loc) · 1.52 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
language: ruby
rvm:
- ruby-2.4.2
- ruby-2.5.7
- ruby-head
- jruby-9.2.9.0
- jruby-head
- rubinius
- rubinius-3.86
branches:
only:
- master
before_install:
- git submodule update --init --recursive
- gem install ffi
- sudo apt-get install libev-dev python-httplib2
- sudo wget https://packages.couchbase.com/releases/5.1.0/couchbase-server-enterprise_5.1.0-ubuntu14.04_amd64.deb
- sudo dpkg -i couchbase-server-enterprise_5.1.0-ubuntu14.04_amd64.deb
- sleep 8
- sudo service couchbase-server status
- /opt/couchbase/bin/couchbase-cli cluster-init -c 127.0.0.1:8091 --cluster-username=admin --cluster-password=password --cluster-ramsize=320 --cluster-index-ramsize=256 --cluster-fts-ramsize=256 --services=data,index,query,fts
- sleep 5
- /opt/couchbase/bin/couchbase-cli server-info -c 127.0.0.1:8091 -u admin -p password
- /opt/couchbase/bin/couchbase-cli bucket-create -c 127.0.0.1:8091 -u admin -p password --bucket=default --bucket-type=couchbase --bucket-ramsize=160 --bucket-replica=0 --wait
- sleep 1
- /opt/couchbase/bin/couchbase-cli user-manage -c 127.0.0.1:8091 -u admin -p password --set --rbac-username tester --rbac-password password123 --rbac-name "Auto Tester" --roles admin --auth-domain local
- curl http://admin:password@localhost:8093/query/service -d 'statement=CREATE INDEX `default_type` ON `default`(`type`)'
- export TRAVIS_TEST=true
matrix:
allow_failures:
- rvm: jruby-head
- rvm: ruby-head
- rvm: rubinius
- rvm: rubinius-3.86
sudo: required
dist: trusty