diff options
author | Daiki Ueno <dueno@redhat.com> | 2016-10-06 16:09:29 +0200 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2016-10-31 09:37:29 +0100 |
commit | dd514f46c880c508f69412850286d70ec8967758 (patch) | |
tree | abe1f39fe4b03c6ea2699a9417f1c32f490b8d7d | |
parent | a96f354c3068edb6c8ac80ae6d9a6611651145d7 (diff) |
travis: Enable build on the CI
-rw-r--r-- | .travis.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..816a7f9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,27 @@ +sudo: required + +language: c + +services: + - docker + +before_install: + - docker pull fedora + - export CONTAINER=$(docker run -d fedora sleep 1800) + - docker exec $CONTAINER dnf -y install 'dnf-command(builddep)' + - docker exec $CONTAINER dnf -y builddep p11-kit + - docker exec $CONTAINER dnf -y install gettext-devel libtool make + - docker exec $CONTAINER useradd user + - docker exec $CONTAINER mkdir /builddir + - docker exec $CONTAINER chown -R user /builddir + +install: + - docker cp . $CONTAINER:/srcdir + # FIXME: This is needed because some files are included in distribution + # and need to be generated in $srcdir rather than $builddir + - docker exec $CONTAINER chown -R user /srcdir + +script: + - docker exec $CONTAINER sh -c "cd /srcdir && NOCONFIGURE=1 ./autogen.sh" + - docker exec $CONTAINER su - user sh -c "cd /builddir && ../srcdir/configure --prefix=/usr --libdir=/usr/lib64" + - docker exec $CONTAINER su - user sh -c "cd /builddir && make && make check" |