From 6f72accbee4cb61f0daeb0a17401444bf3807e0c Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 11 Jul 2017 15:02:57 +1000 Subject: [PATCH] circle.yml: split fedora install out and make ninja more flexible Signed-off-by: Peter Hutterer --- circle.yml | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/circle.yml b/circle.yml index 37450f2f..e8c8d5c7 100644 --- a/circle.yml +++ b/circle.yml @@ -1,13 +1,21 @@ libratbag_references: default_settings: &default_settings working_directory: ~/libratbag + build_default: &build_default + name: Build + command: | + rm -rf build + meson build ${MESON_PARAMS} + mesonconf build + ninja -v -C build ${NINJA_ARGS} + environment: + MESON_PARAMS: --prefix=/usr build_and_test: &build_and_test run: + <<: *build_default name: Build and test - command: | - meson build --prefix=/usr - mesonconf build - ninja -C build test + environment: + NINJA_ARGS: test install: &install run: name: Installing @@ -33,12 +41,16 @@ libratbag_references: path: ~/libratbag/build/meson-logs +fedora_install: &fedora_install + run: + name: Install prerequisites + command: dnf install -y tree git gcc gcc-c++ meson check-devel libudev-devel libevdev-devel doxygen graphviz valgrind + + fedora_settings: &fedora_settings <<: *default_settings steps: - - run: - name: Install prerequisites - command: dnf install -y tree git gcc gcc-c++ meson check-devel libudev-devel libevdev-devel doxygen graphviz valgrind + - *fedora_install - checkout - *build_and_test - *install