summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorDavid Wagner <david.wagner@intel.com>2015-04-15 11:22:46 +0200
committerEric Laurent <elaurent@google.com>2015-04-24 13:39:14 -0700
commit70890d100188fd706ad3784338ea8452914e3da3 (patch)
treea9bb59849ad33dd712b7d7942a39c572f874305a /.travis.yml
parentace56ce368fa42b3eb496382e7387a47fff5f0a6 (diff)
downloadexternal_parameter-framework-70890d100188fd706ad3784338ea8452914e3da3.zip
external_parameter-framework-70890d100188fd706ad3784338ea8452914e3da3.tar.gz
external_parameter-framework-70890d100188fd706ad3784338ea8452914e3da3.tar.bz2
travis: Use the docker infrastructure
As advertise by travis news: http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/ using the new docker infra is faster and more reliable. This comes with the cost of not being able to use "sudo", though. Installing packages is still possible by specifying them in an "addons.apt" section in .travis.yml. We have to remove "sudo make install" but we aren't using the installed libs and binaries anyway. I had some syntax issues with the "addons" and "env" sections and had to remove the coverity subsection which wasn't configure for the 01org repository anyway. Signed-off-by: David Wagner <david.wagner@intel.com>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml68
1 files changed, 32 insertions, 36 deletions
diff --git a/.travis.yml b/.travis.yml
index 3fec8b1..b50a84b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,41 +1,52 @@
+# Use travis docker infrastructure
+sudo: false
language: cpp
+
+env:
+ global:
+ - PREFIX=$HOME/prefix
+
compiler:
- - gcc
-# - clang # not supported yet
+ - gcc
+ # clang not supported yet
+ # - clang
-# Install a recent gcc, gcov and cmake,
+# Install a recent gcc and gcov,
# it will not be necessary once travis worker is based on ubuntu > 12.04.
# Install SWIG for bindings generation
-before_install:
- - sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
- - sudo add-apt-repository --yes ppa:kalakris/cmake # Non official cmake backport
- - sudo apt-get update -qq
- - sudo pip install cpp-coveralls
+# Install valgrind for memcheck tests
+addons:
+ apt:
+ sources:
+ - ubuntu-toolchain-r-test
+ packages:
+ - swig
+ - valgrind
+ - g++-4.8
install:
- - sudo apt-get install --yes swig cmake valgrind g++-4.8
- - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 100
- - sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-4.8 100
- - sudo wget --directory-prefix /usr/include/
+ - pip install --user cpp-coveralls; export PATH=$HOME/.local/bin:$PATH
+ - wget --directory-prefix $PREFIX/include
https://raw.github.com/philsquared/Catch/master/single_include/catch.hpp
+before_script:
+ - if [ "$CC" = "gcc" ]; then export CC=gcc-4.8 CXX=g++-4.8; fi
+
# how to build
script:
- ( mkdir build_debug && cd build_debug &&
- cmake -DCMAKE_BUILD_TYPE=Debug -DCOVERAGE=ON .. &&
+ cmake -DCMAKE_PREFIX_PATH=$PREFIX -DCMAKE_BUILD_TYPE=Debug -DCOVERAGE=ON .. &&
make -j &&
CTEST_OUTPUT_ON_FAILURE=1 make ExperimentalTest ExperimentalMemCheck )
- ( mkdir build && cd build &&
- cmake .. &&
+ cmake -DCMAKE_PREFIX_PATH=$PREFIX -DCMAKE_INSTALL_PREFIX=../install .. &&
make -j &&
- sudo make install &&
- sudo ldconfig &&
- CTEST_OUTPUT_ON_FAILURE=1 make test )
+ CTEST_OUTPUT_ON_FAILURE=1 make test &&
+ make install)
- ( cd skeleton-subsystem &&
- cmake . &&
+ cmake -DCMAKE_INSTALL_PREFIX=../install . &&
make &&
- sudo make install &&
- sudo ldconfig )
+ make install )
after_success:
# Push coverage info on coveralls.io.
@@ -48,6 +59,7 @@ after_success:
--exclude "test/test-subsystem"
--exclude "bindings/c/Test.cpp"
--exclude "test/tokenizer"
+ --gcov /usr/bin/gcov-4.8
--gcov-options '\--long-file-names --preserve-paths'
notifications:
@@ -55,19 +67,3 @@ notifications:
- david.wagner@intel.com
irc:
- "chat.freenode.net#parameter-framework"
-
-env:
- global:
- # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
- # via the "travis encrypt" command using the project repo's public key
- - secure: "Y+iKBg65e4dleuMwxAo1XSl/QkF4AtCe35ltu2DhPbeMJCywBmu0aeDb04oEaZJL+BxP+KMoRqRjeoGI3W/sh0gAq03iQ+P4C8KwRb9fdYPPVwH3NP3fyN27gFBH9GS8uMth68o2KP/oO/aqNwii/KbMZtubp7MhY/wnvz4DLCQ="
-
-addons:
- coverity_scan:
- project:
- name: "dawagner/parameter-framework"
- description: "Plugin-based and rule-based framework for managing parameters"
- notification_email: david.wagner@intel.com
- build_command_prepend: "cmake ."
- build_command: "make -j 12"
- branch_pattern: coverity_scan