[grilo] travis: use Docker to perform build and test
- From: Juan A. Suárez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] travis: use Docker to perform build and test
- Date: Sun, 12 Feb 2017 02:13:09 +0000 (UTC)
commit b90fdf69f5b8ab8f1c8d785450d69b1583593882
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Sun Feb 12 02:54:07 2017 +0100
travis: use Docker to perform build and test
Finally, we move to use containers in Travis CI to build and test Grilo.
It uses grilofw/grilo:base as base image.
If build goes fine, it will push grilofw/grilo:core container, which is
used to build Grilo plugins.
.travis.yml | 40 ++++++++++++++++++++++++++++++----------
1 files changed, 30 insertions(+), 10 deletions(-)
---
diff --git a/.travis.yml b/.travis.yml
index 6b43172..7c903ff 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,13 +1,33 @@
-language: c
+sudo: false
+
compiler: gcc
+language: c
+os: linux
+
+services:
+ - docker
+
before_install:
- - sudo add-apt-repository "deb http://ppa.launchpad.net/grilo-team/travis/ubuntu trusty main" -y
- - sudo add-apt-repository "deb mirror://mirrors.ubuntu.com/mirrors.txt trusty main restricted universe
multiverse" -y
- - sudo apt-get update -qq
- - sudo apt-get install -qq gnome-common gtk-doc-tools libglib2.0-dev
- libxml2-dev libgtk-3-dev liboauth-dev libsoup2.4-dev valac
- gobject-introspection libgirepository1.0-dev zlib1g-dev
- libtotem-plparser-dev
+ - docker pull grilofw/grilo:base
+
script:
- - ./autogen.sh --enable-gtk-doc
- - make
+ - echo FROM grilofw/grilo:base > Dockerfile
+ - echo ADD . /root/grilo >> Dockerfile
+ - echo WORKDIR /root/grilo >> Dockerfile
+ - echo RUN ./autogen.sh \
+ --prefix /usr \
+ --enable-gtk-doc
+ --enable-introspection \
+ --enable-vala \
+ --enable-test-ui \
+ --enable-grl-net \
+ --enable-grl-pls >> Dockerfile
+ - echo RUN make >> Dockerfile
+ - echo RUN make install >> Dockerfile
+ - docker build -t grilofw/grilo:core .
+
+after_success:
+ - if [[ "$TRAVIS_BRANCH" == "master" ]]; then
+ docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
+ docker push grilofw/grilo:core;
+ fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]