Discussion:
[PATCH] Travis-CI: Use container for test.
Gris Ge
2015-07-22 02:04:08 UTC
Permalink
* Since all required packages have been added to whitelist[1], we are ready to
use container(sudo: false) way for test.

[1]: https://github.com/travis-ci/apt-package-whitelist

Signed-off-by: Gris Ge <***@redhat.com>
---
.travis.yml | 31 +++++++++++++++++++------------
1 file changed, 19 insertions(+), 12 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 8fe5bf3..f267aed 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,17 +1,24 @@
-sudo: true
-# python-pywbem and libconfig-dev is not in whitelist yet which stop us using
-# "sudo : false" new container way:
-# https://github.com/travis-ci/travis-ci/issues/4332
-# https://github.com/travis-ci/travis-ci/issues/4329
-
+sudo: false
language: c

-install:
- - sudo apt-get update -qq
- - sudo apt-get install -qq gcc tar make g++ libtool autoconf automake
- libyajl-dev python-pywbem libxml2-dev check
- libglib2.0-dev python-m2crypto libssl-dev libconfig-dev
-
+addons:
+ apt:
+ packages:
+ - gcc
+ - tar
+ - make
+ - g++
+ - libtool
+ - autoconf
+ - automake
+ - libyajl-dev
+ - python-pywbem
+ - libxml2-dev
+ - check
+ - libglib2.0-dev
+ - python-m2crypto
+ - libssl-dev
+ - libconfig-dev

compiler: gcc
--
1.8.3.1
Loading...