From 13702012a4f77cc6a44d7c755733caa879d758e5 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 9 Nov 2018 12:07:16 +0100 Subject: [PATCH] CI (#90) --- .travis.yml | 31 ++++++++----------------------- Dockerfiles/debian | 5 +++++ 2 files changed, 13 insertions(+), 23 deletions(-) create mode 100644 Dockerfiles/debian diff --git a/.travis.yml b/.travis.yml index ee535b86..29b54cf9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,28 +1,13 @@ -sudo: required -language: cpp -compiler: - - gcc - - clang +sudo: false -addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise - packages: - - gcc-5 - - g++-5 - - clang-3.8 +services: + - docker + +env: + - distro: debian before_install: - - sudo apt-get -qq update - - sudo apt-get install ninja python3-pip python3-dev build-essential - - sudo pip3 install --upgrade pip - - sudo pip3 install meson + - docker pull alexays/waybar:${distro} script: - - mkdir build - - meson build - - cd build - - ninja - - ninja test \ No newline at end of file + - docker run alexays/waybar:${distro} /bin/sh -c "git clone https://github.com/Alexays/Waybar && cd Waybar && git clone https://github.com/swaywm/wlroots subprojects/wlroots && meson build && ninja -C build" \ No newline at end of file diff --git a/Dockerfiles/debian b/Dockerfiles/debian new file mode 100644 index 00000000..04db7a6b --- /dev/null +++ b/Dockerfiles/debian @@ -0,0 +1,5 @@ +FROM debian:sid + +RUN apt-get update && \ + apt-get install -y build-essential meson ninja-build git pkg-config libinput10 libinput-dev wayland-protocols libwayland-client0 libwayland-cursor0 libwayland-dev libegl1-mesa-dev libgles2-mesa-dev libgbm-dev libxkbcommon-dev libudev-dev libpixman-1-dev libgtkmm-3.0-dev libjsoncpp-dev && \ + apt-get clean \ No newline at end of file