ci: dockerizes CI to get newer version of gtk (3.22.*) from Debian 9 image.

Signed-off-by: Chris Lapa <chris@lapa.com.au>
This commit is contained in:
Chris Lapa 2017-10-06 09:13:35 +11:00 committed by Thibault Saunier
parent 815c79fbe3
commit 88bef66dfa
3 changed files with 34 additions and 7 deletions

13
.ci_build.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
set -e
export BUILD_DIR="/${SOURCE_DIR}/build"
cd "${SOURCE_DIR}"
rm -Rf "${BUILD_DIR}"
meson "${BUILD_DIR}"
cd "${BUILD_DIR}"
ninja
ninja -C "${BUILD_DIR}" test

View file

@ -1,13 +1,13 @@
sudo: required
language:
- csharp
services:
docker
before_install:
- sudo apt-get install -y git python3-pip unzip build-essential libgtk-3-dev
- sudo apt-get build-dep -y libgtk-3-0
- wget https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip
- unzip ninja-linux.zip
- sudo mv ninja /usr/bin/
- sudo pip3 install git+https://github.com/mesonbuild/meson/
- docker build -t gtk-sharp-debian9 .
script:
- meson build/ && ninja -C build/ test
- docker run gtk-sharp-debian9

14
Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM debian:9
RUN apt-get update && \
apt-get install -y git python3 python3-pip ninja-build mono-devel libgtk-3-dev
RUN pip3 install git+https://github.com/mesonbuild/meson/
ENV SOURCE_DIR="/source"
RUN mkdir -p "${SOURCE_DIR}"
COPY / "${SOURCE_DIR}"
CMD ["/source/.ci_build.sh"]