Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
7977f6fa
Commit
7977f6fa
authored
7 years ago
by
Roman Tsisyk
Browse files
Options
Downloads
Patches
Plain Diff
Travis CI: use Docker for testing
Ubuntu Trusty on Travis is buggy. Fixes #2752
parent
d046e987
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.travis.mk
+29
-9
29 additions, 9 deletions
.travis.mk
.travis.yml
+2
-33
2 additions, 33 deletions
.travis.yml
with
31 additions
and
42 deletions
.travis.mk
+
29
−
9
View file @
7977f6fa
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
.travis.yml
+
2
−
33
View file @
7977f6fa
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}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment