2020-06-23 14:45:56 +00:00
|
|
|
language: generic
|
|
|
|
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2019-12-25 19:28:07 +00:00
|
|
|
env:
|
|
|
|
- CONFIGURE_FLAGS=
|
|
|
|
- CONFIGURE_FLAGS=--release
|
2020-01-21 21:17:33 +00:00
|
|
|
- CONFIGURE_FLAGS=--no-debug
|
2020-06-23 14:45:56 +00:00
|
|
|
|
2019-07-29 21:27:14 +00:00
|
|
|
before_install:
|
2020-06-23 14:45:56 +00:00
|
|
|
- export CONTAINER_ID=$(docker run -itd --rm --mount type=bind,source="$(pwd)",target=/app debian:stable)
|
|
|
|
- docker exec $CONTAINER_ID apt-get update
|
2020-05-29 20:51:28 +00:00
|
|
|
- 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 libgspell-1-dev
|
2019-07-29 21:27:14 +00:00
|
|
|
install:
|
2020-06-23 14:45:56 +00:00
|
|
|
- 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"
|
|
|
|
|
2019-07-29 21:27:14 +00:00
|
|
|
script:
|
2020-06-23 14:45:56 +00:00
|
|
|
- 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
|