From 4688f44357a59786b3c46250ba54e593229828b8 Mon Sep 17 00:00:00 2001 From: Alexander Turenko Date: Wed, 2 Sep 2020 00:42:21 +0300 Subject: [PATCH] travis-ci: don't fail on 'example' instance stop The 'example' instance in not installed by default in tarantool-2.4 since 2.4.1-66-g78a9f8698, in tarantool-2.5 since 2.5.0-133-g080beba06 and in all further tarantool versions; see [1] for more information. [1]: https://github.com/tarantool/tarantool/issues/4507 --- .travis/travis.pre.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis/travis.pre.sh b/.travis/travis.pre.sh index e7d8eece..c841472f 100755 --- a/.travis/travis.pre.sh +++ b/.travis/travis.pre.sh @@ -14,4 +14,9 @@ EOF sudo apt-get update sudo apt-get -y install tarantool tarantool-common -sudo tarantoolctl stop example +# Stop 'example' instance if it exists. +# +# See https://github.com/tarantool/tarantool/issues/4507 +if [ -e /etc/tarantool/instances.enabled/example.lua ]; then + sudo tarantoolctl stop example +fi