-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
42 lines (36 loc) · 1.76 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
dist: trusty
sudo: required
language: php
php:
- 7.2
cache:
directories:
- $HOME/.composer/cache
addons:
apt:
packages:
- python
install:
- travis_retry composer self-update && composer --version
- export PATH="$HOME/.composer/vendor/bin:$PATH"
before_script:
- wget http://packages.couchbase.com/releases/4.6.2/couchbase-server-enterprise_4.6.2-ubuntu14.04_amd64.deb
- sudo dpkg -i couchbase-server-enterprise_4.6.2-ubuntu14.04_amd64.deb
- 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 -y update
- sudo apt-get -y install libcouchbase-dev build-essential zlib1g-dev
- pecl install pcs-1.3.3
- pecl install igbinary
- pecl install couchbase
- /opt/couchbase/bin/couchbase-cli cluster-init -c 127.0.0.1:8091 --cluster-init-username=Administrator --cluster-init-password=Administrator --cluster-init-port=8091 --cluster-init-ramsize=2048 --cluster-index-ramsize=512 --services=data,index,query
- /opt/couchbase/bin/couchbase-cli rebalance -c 127.0.0.1:8091 -u Administrator -p Administrator
- /opt/couchbase/bin/couchbase-cli bucket-create -c 127.0.0.1:8091 --bucket=yii2test --bucket-type=couchbase --bucket-port=11211 --bucket-ramsize=256 -u Administrator -p Administrator
- /opt/couchbase/bin/cbq -c 127.0.0.1:8091 -u Administrator -p Administrator -s="CREATE PRIMARY INDEX ON \`yii2test\`"
- wget https://phar.phpunit.de/phpunit-7.0.3.phar
- chmod +x phpunit-7.0.3.phar
- sudo mv phpunit-7.0.3.phar /usr/local/bin/phpunit
- /usr/local/bin/phpunit --version
- composer install --no-ansi --no-dev --no-interaction --no-progress --no-scripts --optimize-autoloader
script:
- /usr/local/bin/phpunit --verbose $PHPUNIT_FLAGS