From 7b6fcdddc0304353a12dbb2cdaae5b79806a8563 Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Fri, 30 Jun 2017 11:13:55 +0200 Subject: [PATCH] Add circle.yml Currently only checks for style issues Signed-off-by: Benjamin Tissoires --- README.md | 5 +++++ circle.yml | 24 ++++++++++++++++++++++++ piper.in | 1 - 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 circle.yml diff --git a/README.md b/README.md index d9da6d3..27e567a 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,11 @@ Screenshots ![Piper screenshot](http://imgur.com/ELLCiSE.png) +Build Status +============ + +[![CircleCI](https://circleci.com/gh/libratbag/piper.svg?style=svg&circle-token=7082ad7a7fea706fff66f1547649dca32e446cb0)](https://circleci.com/gh/libratbag/piper) + License ======= diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..65f1fc8 --- /dev/null +++ b/circle.yml @@ -0,0 +1,24 @@ +version: 2 +jobs: + build: + working_directory: ~/piper + docker: + - image: fedora:rawhide + steps: + - run: + command: | + dnf install -y git python3-flake8 + - checkout + - run: flake8-3 . piper.in + + # now install and checks the resulting file (just in case) + - run: + command: | + dnf install -y meson python3-devel pygobject3-devel + - run: + command: | + meson build + ninja -C build + - run: flake8-3 buildir/piper + - store_artifacts: + path: ~/piper/build/meson-logs diff --git a/piper.in b/piper.in index 590e8a9..9cd264c 100755 --- a/piper.in +++ b/piper.in @@ -50,4 +50,3 @@ if __name__ == "__main__": signal.signal(signal.SIGINT, signal.SIG_DFL) win = piper.Piper() Gtk.main() -