mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 08:35:35 +00:00
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:
parent
815c79fbe3
commit
88bef66dfa
13
.ci_build.sh
Executable file
13
.ci_build.sh
Executable 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
|
14
.travis.yml
14
.travis.yml
|
@ -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
14
Dockerfile
Normal 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"]
|
Loading…
Reference in a new issue