From 9ed61fd072752f28ab9fc96e25ebe1cf0376c3e1 Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Thu, 29 Jun 2017 12:10:06 +0200 Subject: [PATCH] Add circle.yml Semaphore CI is still using Ubuntu 14.04, and the shipped systemd version is just too old. OTOH, Circle CI 2.0 (still beta as of today) allows to use any docker image as a base for running the tests. Meaning that we can have a fedora rawhide image as a base and we do not have to handle the update of systemd meson and others. Ship a basic circle.yml for Circle CI to run our tests and add the badge in the README. Signed-off-by: Benjamin Tissoires --- README.md | 2 ++ circle.yml | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 circle.yml diff --git a/README.md b/README.md index 54d8a328..ad9072a1 100644 --- a/README.md +++ b/README.md @@ -263,3 +263,5 @@ libratbag is licensed under the MIT license. See the COPYING file for the full license information. [![Build Status](https://semaphoreci.com/api/v1/projects/7905244a-c0b5-468b-9071-d846de3ce9f1/545192/badge.svg)](https://semaphoreci.com/libratbag/libratbag) + +[![Build Status](https://circleci.com/gh/libratbag/libratbag.svg?style=shield&circle-token=d7c782e10d2d934b176da754f11b5105ea074f4a)](https://circleci.com/gh/bentiss/libratbag) diff --git a/circle.yml b/circle.yml new file mode 100644 index 00000000..93397e02 --- /dev/null +++ b/circle.yml @@ -0,0 +1,17 @@ +version: 2 +jobs: + build: + working_directory: ~/libratbag + docker: + - image: fedora:rawhide + steps: + - run: + command: | + dnf install -y git gcc gcc-c++ meson check-devel libudev-devel libevdev-devel doxygen graphviz + - checkout + - run: + command: | + meson build + ninja -C build test + - store_artifacts: + path: ~/libratbag/build/meson-logs