Make Travis CI use debian stable in docker

This commit is contained in:
Marvin W 2020-06-23 16:45:56 +02:00
parent 1f506cec42
commit 717d0b7fca
No known key found for this signature in database
GPG key ID: 072E9235DB996F2A

View file

@ -1,17 +1,25 @@
dist: bionic language: generic
language: c
services:
- docker
env: env:
- CONFIGURE_FLAGS= - CONFIGURE_FLAGS=
- CONFIGURE_FLAGS=--release - CONFIGURE_FLAGS=--release
- CONFIGURE_FLAGS=--no-debug - CONFIGURE_FLAGS=--no-debug
before_install: before_install:
- export USE_CCACHE=1 - export CONTAINER_ID=$(docker run -itd --rm --mount type=bind,source="$(pwd)",target=/app debian:stable)
- sudo apt-get update - docker exec $CONTAINER_ID 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 - 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: install:
- ./configure --with-tests --with-libsignal-in-tree $CONFIGURE_FLAGS - docker exec $CONTAINER_ID bash -c "cd /app; ./configure --with-tests --with-libsignal-in-tree $CONFIGURE_FLAGS"
- make - docker exec $CONTAINER_ID bash -c "cd /app; make"
script: script:
- build/xmpp-vala-test - docker exec $CONTAINER_ID bash -c "cd /app; build/xmpp-vala-test"
- build/signal-protocol-vala-test - docker exec $CONTAINER_ID bash -c "cd /app; build/signal-protocol-vala-test"
cache: ccache
after_script:
- docker kill $CONTAINER_ID