-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.travis.yml
50 lines (41 loc) · 1.83 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
language: php
dist: trusty
php:
- 7
- 7.1
sudo: required
services:
- mysql
env:
CB_BUCKET=test-ing
CB_VERSION=4
before_script:
- set -e
- wget http://packages.couchbase.com/releases/couchbase-release/couchbase-release-1.0-2-amd64.deb
- sudo dpkg -i couchbase-release-1.0-2-amd64.deb
- sudo apt-get update
- sudo apt-get install libcouchbase-dev
- wget http://packages.couchbase.com/releases/4.6.0-DP/couchbase-server-enterprise_4.6.0-DP-ubuntu14.04_amd64.deb
- sudo dpkg -i couchbase-server-enterprise_4.6.0-DP-ubuntu14.04_amd64.deb
- cd /opt/couchbase
- ./bin/couchbase-server -- -noinput -detached
- sleep 20
- ./bin/couchbase-cli cluster-init -c 127.0.0.1:8091 --cluster-username=Administrator --cluster-password=password --cluster-port=8091 --cluster-index-ramsize=512 --cluster-ramsize=512 --services=data,query,index
- ./bin/couchbase-cli bucket-create -c 127.0.0.1:8091 --bucket=${CB_BUCKET} --bucket-type=couchbase --bucket-port=11211 --bucket-ramsize=256 --bucket-replica=1 -u Administrator -p password
- ./bin/couchbase-cli bucket-create -c 127.0.0.1:8091 --bucket=${CB_BUCKET}2 --bucket-type=couchbase --bucket-port=11211 --bucket-ramsize=256 --bucket-replica=1 -u Administrator -p password
- sleep 10
- ./bin/cbq -e http://127.0.0.1:8091 --script "CREATE PRIMARY INDEX ON \`${CB_BUCKET}\` USING GSI;"
- ./bin/cbq -e http://127.0.0.1:8091 --script "CREATE PRIMARY INDEX ON \`${CB_BUCKET}2\` USING GSI;"
- mysql -e 'create database testing;'
- pecl channel-update pecl.php.net
- pecl install pcs-1.3.3
- pecl install couchbase-2.4.1
- cd $TRAVIS_BUILD_DIR
- travis_retry composer self-update
- travis_retry composer install --prefer-dist --no-interaction
script:
- vendor/bin/phpunit --coverage-clover=coverage.xml
before_install:
- pip install --user codecov
after_success:
- codecov