Skip to content
Snippets Groups Projects
Commit 7977f6fa authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Travis CI: use Docker for testing

Ubuntu Trusty on Travis is buggy.

Fixes #2752
parent d046e987
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,8 @@
# Travis CI rules
#
DOCKER_IMAGE:=packpack/packpack:ubuntu-zesty
all: package
source:
......@@ -14,14 +16,33 @@ package:
test: test_$(TRAVIS_OS_NAME)
deps_linux:
sudo apt-get update > /dev/null
sudo apt-get -q -y install binutils-dev python-daemon python-yaml \
libcurl4-gnutls-dev
sudo pip install six==1.9.0
sudo pip install gevent==1.1.2
# Redirect some targets via docker
test_linux: docker_test_ubuntu
coverage: docker_coverage_ubuntu
docker_%:
mkdir -p ~/.cache/ccache
docker run \
--rm=true --tty=true \
--volume "${PWD}:/tarantool" \
--volume "${HOME}/.cache:/cache" \
--workdir /tarantool \
-e XDG_CACHE_HOME=/cache \
-e CCACHE_DIR=/cache/ccache \
-e COVERALLS_TOKEN=${COVERALLS_TOKEN} \
${DOCKER_IMAGE} \
make -f .travis.mk $(subst docker_,,$@)
deps_ubuntu:
sudo apt-get update && apt-get install -y -f \
build-essential cmake coreutils sed \
libreadline-dev libncurses5-dev libyaml-dev libssl-dev \
libcurl4-openssl-dev libunwind-dev \
python python-pip python-setuptools python-dev \
python-msgpack python-yaml python-argparse python-six python-gevent \
lcov ruby
test_linux: deps_linux
test_ubuntu: deps_ubuntu
cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo
make -j8
cd test && /usr/bin/python test-run.py -j -1
......@@ -43,8 +64,7 @@ test_osx: deps_osx
make -j8
cd test && python test-run.py -j -1 unit/ app/ app-tap/ box/ box-tap/
coverage: deps_linux
sudo apt-get -q -y install lcov
coverage_ubuntu: deps_ubuntu
cmake . -DCMAKE_BUILD_TYPE=Debug -DENABLE_GCOV=ON
make -j8
# Enable --long tests for coverage
......
sudo: required
sudo: false
services:
- docker
language: cpp
os:
- linux
- osx
compiler:
- clang
- gcc
cache:
directories:
- $HOME/.cache
......@@ -52,32 +49,6 @@ matrix:
# - env: OS=debian DIST=jessie
# - env: OS=debian DIST=stretch
exclude:
- env: OS=el DIST=6
compiler: clang
- env: OS=el DIST=7
compiler: clang
- env: OS=fedora DIST=24
compiler: clang
- env: OS=fedora DIST=25
compiler: clang
- env: OS=ubuntu DIST=precise
compiler: clang
- env: OS=ubuntu DIST=trusty
compiler: clang
- env: OS=ubuntu DIST=xenial
compiler: clang
- env: OS=ubuntu DIST=yakkety
compiler: clang
- env: OS=debian DIST=wheezy
compiler: clang
- env: OS=debian DIST=jessie
compiler: clang
- env: OS=debian DIST=stretch
compiler: clang
- env: TARGET=source
compiler: clang
- env: TARGET=coverage
compiler: clang
- env: OS=el DIST=6
os: osx
- env: OS=el DIST=7
......@@ -104,8 +75,6 @@ matrix:
os: osx
- env: TARGET=coverage
os: osx
- os: osx
compiler: gcc
script:
- make -f .travis.mk ${TARGET}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment