Skip to content

Commit d1bc20d

Browse files
Merge pull request #100 from basho/travis
Travis
2 parents 72b274f + af71624 commit d1bc20d

File tree

1 file changed

+32
-4
lines changed

1 file changed

+32
-4
lines changed

.travis.yml

+32-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,41 @@
11
language: php
2+
23
php:
34
- 5.4
45
- 5.5
56
- 5.6
7+
- 7.0
68
- hhvm
7-
sudo: false # enables docker
8-
install:
9-
- composer install
9+
10+
sudo: required
11+
12+
addons:
13+
hosts:
14+
- riak-test
15+
16+
before_script:
17+
- composer self-update
18+
- composer install --prefer-source
19+
- sudo riak-admin bucket-type create phptest_counters '{"props":{"datatype":"counter"}}'
20+
- sudo riak-admin bucket-type create phptest_maps '{"props":{"datatype":"map"}}'
21+
- sudo riak-admin bucket-type create phptest_sets '{"props":{"datatype":"set"}}'
22+
- sudo riak-admin bucket-type create phptest_search '{"props":{}}'
23+
- sudo riak-admin bucket-type create phptest_leveldb '{"props":{"backend":"leveldb_backend"}}'
24+
- sudo riak-admin bucket-type activate phptest_counters
25+
- sudo riak-admin bucket-type activate phptest_maps
26+
- sudo riak-admin bucket-type activate phptest_sets
27+
- sudo riak-admin bucket-type activate phptest_search
28+
- sudo riak-admin bucket-type activate phptest_leveldb
29+
1030
notifications:
1131
webhooks: http://basho-engbot.herokuapp.com/travis?key=8d594c660ec46f616e37e24fd941c0ea1fc67963
1232
13-
script: "php vendor/bin/phpunit --testsuite 'Unit Tests'"
33+
34+
script: "./vendor/bin/phpunit --coverage-text"
35+
36+
services:
37+
- riak
38+
39+
matrix:
40+
allow_failures:
41+
- php: 7.0

0 commit comments

Comments
 (0)