Skip to content

Commit

Permalink
Test on different Tarantool versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rybakit committed May 18, 2019
1 parent c7c6670 commit d98e2c9
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,27 @@ services:
- docker

env:
- PHP_IMAGE='php:7.1-cli' TNT_CLIENT=pecl PHPUNIT_OPTS='--coverage-clover=coverage.clover'
- PHP_IMAGE='php:7.1-cli' CHECK_CS=1
- PHP_IMAGE='php:7.2-cli' PHPUNIT_OPTS='--coverage-clover=coverage.clover'
- PHP_IMAGE='php:7.3-cli'
global:
TNT_IMAGE='tarantool/tarantool:2'

matrix:
- PHP_IMAGE='php:7.1-cli' TNT_CLIENT=pecl PHPUNIT_OPTS='--coverage-clover=coverage.clover'
- PHP_IMAGE='php:7.1-cli' CHECK_CS=1
- PHP_IMAGE='php:7.2-cli' PHPUNIT_OPTS='--coverage-clover=coverage.clover'
- PHP_IMAGE='php:7.3-cli'

- PHP_IMAGE='php:7.3-cli' TNT_IMAGE='tarantool/tarantool:1.7'
- PHP_IMAGE='php:7.3-cli' TNT_IMAGE='tarantool/tarantool:1.9'
- PHP_IMAGE='php:7.3-cli' TNT_IMAGE='tarantool/tarantool:1'
- PHP_IMAGE='php:7.3-cli' TNT_IMAGE='tarantool/tarantool:2.1'

install:
- ./dockerfile.sh | tee /dev/tty | docker build -t queue -

script:
- docker network create tarantool-php
- docker run -d --net=tarantool-php --name=tarantool -v `pwd`:/queue tarantool/tarantool:2 tarantool /queue/tests/Integration/queues.lua
- docker run --net=tarantool-php --rm ${TNT_IMAGE} /usr/local/bin/tarantool --version
- docker run -d --net=tarantool-php --name=tarantool -v `pwd`:/queue ${TNT_IMAGE} tarantool /queue/tests/Integration/queues.lua
- docker run --rm --net=tarantool-php -v `pwd`:/queue -w /queue -e PHPUNIT_OPTS="$PHPUNIT_OPTS" queue

after_script:
Expand Down

0 comments on commit d98e2c9

Please sign in to comment.