Skip to content

Commit f92d412

Browse files
committed
Migrate all tests on bionic
1 parent 7059981 commit f92d412

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

.travis.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,6 @@ jobs:
2626
fast_finish: true
2727
allow_failures:
2828
- php: nightly
29-
include:
30-
- dist: trusty
31-
php: 7.3
32-
- dist: trusty
33-
php: 7.4
34-
exclude:
35-
- dist: bionic
36-
php: 7.3
37-
- dist: bionic
38-
php: 7.4
3929

4030
before_install:
4131
# Memcached is not yet available for PHP8 (hasn't been updated since 2019): https://pecl.php.net/package/memcached
@@ -53,6 +43,7 @@ before_install:
5343
yes | pecl install -f memcache;
5444
phpenv config-add bin/ci/php8_phpfastcache.ini;
5545
else
46+
yes | pecl install -f memcached;
5647
phpenv config-add bin/ci/php7_phpfastcache.ini;
5748
fi
5849
- phpenv config-add bin/ci/php_common.ini;

bin/ci/scripts/setup_couchbase.sh

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,17 @@
44
# https://docs.travis-ci.com/user/database-setup/#starting-services => Couchbase not yet available
55

66
set -e
7+
export COUCHBASE_OS_VERSION=$(lsb_release -sr)
8+
9+
if [[ COUCHBASE_OS_VERSION == "16."* ]]; then
10+
export CB_VERSION=6.6.0
11+
export CB_PACKAGE=couchbase-server-community_6.6.0-ubuntu16.04_amd64.deb
12+
else
13+
export CB_VERSION=7.0.0
14+
export CB_PACKAGE=couchbase-server-community_7.0.0-ubuntu18.04_amd64.deb
15+
fi
716

8-
export CB_VERSION=7.0.0
917
export CB_RELEASE_URL=https://packages.couchbase.com/releases
10-
export CB_PACKAGE=couchbase-server-community_7.0.0-ubuntu18.04_amd64.deb
1118

1219
# Community Edition requires that all nodes provision all services or data service only
1320
export SERVICES="kv,n1ql,index,fts"
@@ -37,8 +44,14 @@ numbered_echo() {
3744
echo "# Prepare Couchbase dependencies"
3845
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A3FAA648D9223EDA
3946
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1616981CC4A088B2
40-
echo "deb https://packages.couchbase.com/ubuntu bionic bionic/main" | sudo tee /etc/apt/sources.list.d/couchbase.list
41-
echo "deb https://packages.couchbase.com/clients/c/repos/deb/ubuntu1804 bionic bionic/main" | sudo tee /etc/apt/sources.list.d/couchbase.list
47+
if [[ COUCHBASE_OS_VERSION == "16."* ]]; then
48+
echo "deb https://packages.couchbase.com/ubuntu xenial xenial/main" | sudo tee /etc/apt/sources.list.d/couchbase.list
49+
echo "deb https://packages.couchbase.com/clients/c/repos/deb/ubuntu1604 xenial xenial/main" | sudo tee /etc/apt/sources.list.d/couchbase.list
50+
else
51+
echo "deb https://packages.couchbase.com/ubuntu bionic bionic/main" | sudo tee /etc/apt/sources.list.d/couchbase.list
52+
echo "deb https://packages.couchbase.com/clients/c/repos/deb/ubuntu1804 bionic bionic/main" | sudo tee /etc/apt/sources.list.d/couchbase.list
53+
fi
54+
4255
sudo apt-get update
4356
sudo apt-get install -yq libcouchbase3 libcouchbase-dev build-essential libssl1.0.0 runit wget python-httplib2 chrpath tzdata lsof lshw sysstat net-tools numactl
4457

0 commit comments

Comments
 (0)