aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2020-06-23 16:45:56 +0200
committerMarvin W <git@larma.de>2020-06-23 17:00:11 +0200
commit717d0b7fcaede5688a236af847d518be4a8f0c6b (patch)
tree727c695ce6905bcda6ad21196379cc10a5fd3890 /.travis.yml
parent1f506cec428e9d5fb5a9340e954c8786c154a48f (diff)
downloaddino-717d0b7fcaede5688a236af847d518be4a8f0c6b.tar.gz
dino-717d0b7fcaede5688a236af847d518be4a8f0c6b.zip
Make Travis CI use debian stable in docker
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml28
1 files changed, 18 insertions, 10 deletions
diff --git a/.travis.yml b/.travis.yml
index f91bc29f..09002941 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,17 +1,25 @@
-dist: bionic
-language: c
+language: generic
+
+services:
+ - docker
+
env:
- CONFIGURE_FLAGS=
- CONFIGURE_FLAGS=--release
- CONFIGURE_FLAGS=--no-debug
+
before_install:
- - export USE_CCACHE=1
- - sudo apt-get update
- - sudo apt-get install -y cmake valac libgee-0.8-dev libsqlite3-dev libgtk-3-dev libnotify-dev libgpgme-dev libsoup2.4-dev libgcrypt20-dev libqrencode-dev
+ - export CONTAINER_ID=$(docker run -itd --rm --mount type=bind,source="$(pwd)",target=/app debian:stable)
+ - docker exec $CONTAINER_ID apt-get update
+ - docker exec $CONTAINER_ID apt-get install -y build-essential gettext cmake valac libgee-0.8-dev libsqlite3-dev libgtk-3-dev libnotify-dev libgpgme-dev libsoup2.4-dev libgcrypt20-dev libqrencode-dev
+
install:
- - ./configure --with-tests --with-libsignal-in-tree $CONFIGURE_FLAGS
- - make
+ - docker exec $CONTAINER_ID bash -c "cd /app; ./configure --with-tests --with-libsignal-in-tree $CONFIGURE_FLAGS"
+ - docker exec $CONTAINER_ID bash -c "cd /app; make"
+
script:
- - build/xmpp-vala-test
- - build/signal-protocol-vala-test
-cache: ccache
+ - docker exec $CONTAINER_ID bash -c "cd /app; build/xmpp-vala-test"
+ - docker exec $CONTAINER_ID bash -c "cd /app; build/signal-protocol-vala-test"
+
+after_script:
+ - docker kill $CONTAINER_ID