Skip to content

Commit fc58764

Browse files
artemreytTotktonada
authored andcommitted
ci: verify on different tarantool versions
Now, Travis CI will run tests for memcached module using Tarantool versions 1.10, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7 Added few jobs to .travis.yml for this feature. Updated way to enable tarantool repo to `curl -L https://tarantool.io/installer.sh | sudo VER=2.5 bash` in test.sh and made TARANTOOL_VERSION variable in test.sh Fixes #58 Co-authored-by: Alexander Turenko <[email protected]>
1 parent d728863 commit fc58764

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@ env:
1717
global:
1818
- PRODUCT=tarantool-memcached
1919
matrix:
20-
- TARGET=test
20+
- TARGET=test TARANTOOL_VERSION=1.10
21+
- TARGET=test TARANTOOL_VERSION=2.1
22+
- TARGET=test TARANTOOL_VERSION=2.2
23+
- TARGET=test TARANTOOL_VERSION=2.3
24+
- TARGET=test TARANTOOL_VERSION=2.4
25+
- TARGET=test TARANTOOL_VERSION=2.5
26+
- TARGET=test TARANTOOL_VERSION=2.6
27+
- TARGET=test TARANTOOL_VERSION=2.7
2128
- OS=el DIST=6
2229
- OS=el DIST=7
2330
- OS=el DIST=8

test.sh

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,26 @@
22

33
set -eu # Strict shell, w/o print commands (set -x), w/o -o pipefail
44

5-
curl -s https://packagecloud.io/install/repositories/tarantool/1_10/script.deb.sh | sudo bash
5+
TARANTOOL_VERSION="${TARANTOOL_VERSION:-1.10}"
6+
7+
# Setup tarantool repository.
8+
#
9+
# --repo-only: Setup the repository, but don't install tarantool.
10+
# The tarantool executable is installed later,
11+
# together with the development package.
12+
#
13+
# --type live: Setup so called 'live' repository with the latest
14+
# tarantool versions of given ${TARANTOOL_VERSION}
15+
# branch. We want to verify the module against the
16+
# latest versions to spot problems earlier.
17+
curl -fsSL https://tarantool.io/installer.sh | \
18+
sudo "VER=${TARANTOOL_VERSION}" bash -s - --repo-only --type live
19+
20+
# Install tarantool executable, headers and other build/test
21+
# dependencies of the module.
622
sudo apt-get install -y tarantool tarantool-dev libevent-dev libsasl2-dev --force-yes
723
pip install --user python-daemon PyYAML six==1.9.0 msgpack-python gevent==1.1.2
24+
825
TARANTOOL_DIR=/usr/include cmake . -DCMAKE_BUILD_TYPE=Release
926

1027
# third_party/libmemcached/bootstrap.sh runs /usr/local/bin/shellcheck on

0 commit comments

Comments
 (0)