From patchwork Mon Jan 20 12:55:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 2711 X-Patchwork-Delegate: kieran.bingham@ideasonboard.com Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 769A560804 for ; Mon, 20 Jan 2020 13:55:49 +0100 (CET) Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 12730A62; Mon, 20 Jan 2020 13:55:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1579524949; bh=JDMDsOkSAsBapJcGljUU5hY1HR3gUoiiNJTImJeeoCw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v1VF8McD8bpygrMOFLi4juRXR5FzfnDoqpqQeTWJZKBKLbSOvUWDy0FMO+Kl4D6uA 05sR+and9oRnzoRbAFWQ2xhiWCbnhXvM/ncISLONdEcWx3MqmOwfXgYHeUAIfjIK41 LoqJo70Lna6+1sDQyc99q3p3ftokSKLZMABVbCR0= From: Kieran Bingham To: LibCamera Devel Date: Mon, 20 Jan 2020 12:55:44 +0000 Message-Id: <20200120125544.12562-4-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200120125544.12562-1-kieran.bingham@ideasonboard.com> References: <20200120125544.12562-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 3/3] ci: gitlab: Provide initial automated testing X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jan 2020 12:55:49 -0000 Integrate compile testing and the ninja test framework. Any unit tests registered with the Meson Build system will automatically be run with 'ninja test'. Documentation will be built, and the resulting package will be installed to 'libcamera/package' Signed-off-by: Kieran Bingham --- v2: - CI: Add Documentation to build artifacts - CI: Convert to alpine image - CI: test install phase --- .gitlab-ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000000..5851af90e22c --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,18 @@ +image: alpine:edge + +build: + stage: build + before_script: + - apk add --no-cache gcc g++ musl-dev meson py3-yaml py3-sphinx linux-headers pkgconfig eudev eudev-dev + script: + - mkdir libcamera && cd libcamera && meson .. && ninja + - ninja Documentation/linkcheck + - DESTDIR=$PWD/package ninja install + artifacts: + expire_in: 6 hrs + paths: + - libcamera/Documentation/* + - libcamera/src/libcamera/libcamera.so + - libcamera/test/test_init + - libcamera/meson-logs/testlog.txt + - libcamera/package/*