Skip to content

Commit 10567b9

Browse files
committed
travis-ci: temporary reduce testing (php 7.0 only)
Temporary disabled php 7.1+ and RPM/Deb packages to get working tests on php 7.0 first. Added testing against different tarantool versions. Temporary disabled tarantool-2.2 testing due to lack of support of the new schema format (see #151).
1 parent 3efbeac commit 10567b9

File tree

2 files changed

+35
-55
lines changed

2 files changed

+35
-55
lines changed

.travis.yml

+25-52
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,33 @@
1-
sudo: required
2-
services:
3-
- docker
1+
os: linux
2+
dist: xenial
43

54
language: php
65

7-
php:
8-
- 7.0
9-
- 7.1
10-
- nightly
6+
# gh-151: disable tarantoo-2.2 due to lack of support the new
7+
# _index format.
8+
jobs:
9+
include:
10+
# PHP 7.0
11+
# -------
12+
- php: 7.0
13+
env: TARANTOOL_VERSION=1.6
14+
- php: 7.0
15+
env: TARANTOOL_VERSION=1.7
16+
- php: 7.0
17+
env: TARANTOOL_VERSION=1.9
18+
- php: 7.0
19+
env: TARANTOOL_VERSION=1.10
20+
- php: 7.0
21+
env: TARANTOOL_VERSION=2.1
22+
# - php: 7.0
23+
# env: TARANTOOL_VERSION=2.2
24+
- php: 7.0
25+
env: TARANTOOL_VERSION=2.3
26+
- php: 7.0
27+
env: TARANTOOL_VERSION=2.4
1128

1229
python:
1330
- 2.7
1431

15-
cache: false
16-
17-
env:
18-
global:
19-
- PRODUCT=php-tarantool
20-
matrix:
21-
- OS=el DIST=6 PACK=rpm
22-
- OS=el DIST=7 PACK=rpm
23-
- OS=fedora DIST=22 PACK=rpm
24-
- OS=fedora DIST=23 PACK=rpm
25-
- OS=fedora DIST=rawhide PACK=rpm
26-
- OS=ubuntu DIST=trusty PACK=deb
27-
- OS=ubuntu DIST=precise PACK=deb
28-
- OS=ubuntu DIST=wily PACK=deb
29-
# phpize is, currently, broken on xenial. can't test, still not stable
30-
# - OS=ubuntu DIST=xenial PACK=deb
31-
- OS=debian DIST=jessie PACK=deb
32-
- OS=debian DIST=wheezy PACK=deb
33-
- OS=debian DIST=stretch PACK=deb
34-
- OS=debian DIST=sid PACK=deb
35-
- PACK=none
36-
37-
# multiple php version exclusion matrix
38-
matrix:
39-
fast_finish: true
40-
allow_failures:
41-
- env: OS=el DIST=6 PACK=rpm
42-
- env: OS=el DIST=7 PACK=rpm
43-
- env: OS=fedora DIST=22 PACK=rpm
44-
- env: OS=fedora DIST=23 PACK=rpm
45-
- env: OS=fedora DIST=rawhide PACK=rpm
46-
- env: OS=ubuntu DIST=precise PACK=deb
47-
- env: OS=ubuntu DIST=trusty PACK=deb
48-
- env: OS=ubuntu DIST=wily PACK=deb
49-
- env: OS=debian DIST=jessie PACK=deb
50-
- env: OS=debian DIST=wheezy PACK=deb
51-
- env: OS=debian DIST=stretch PACK=deb
52-
- env: OS=debian DIST=sid PACK=deb
53-
5432
script:
55-
- git clone https://github.com/tarantool/build.git
56-
- bash build/pack/travis.sh
57-
58-
notifications:
59-
email: true
60-
irc: false
33+
- ./test.sh

test.sh

100644100755
+10-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1-
curl http://download.tarantool.org/tarantool/1.6/gpgkey | sudo apt-key add -
1+
#!/bin/sh
2+
3+
set -exu # Strict shell (w/o -o pipefail)
4+
5+
TARANTOOL_VERSION=${TARANTOOL_VERSION:-1.10}
6+
7+
curl http://download.tarantool.org/tarantool/${TARANTOOL_VERSION}/gpgkey | \
8+
sudo apt-key add -
29
release=`lsb_release -c -s`
310

411
# append two lines to a list of source repositories
512
sudo rm -f /etc/apt/sources.list.d/*tarantool*.list
6-
sudo tee /etc/apt/sources.list.d/tarantool_1_6.list <<- EOF
7-
deb http://download.tarantool.org/tarantool/1.6/ubuntu/ $release main
13+
sudo tee /etc/apt/sources.list.d/tarantool_${TARANTOOL_VERSION}.list <<- EOF
14+
deb http://download.tarantool.org/tarantool/${TARANTOOL_VERSION}/ubuntu/ $release main
815
EOF
916

1017
# install

0 commit comments

Comments
 (0)