[libcamera-devel,2/3] CI: Provide initial automated testing

Message ID 20181122131010.22085-3-kieran.bingham@ideasonboard.com
State Rejected
Headers show
Series
  • sphinx-documentation and initial CI
Related show

Commit Message

Kieran Bingham Nov. 22, 2018, 1:10 p.m. UTC
Integrate compile testing and the ninja test framework.
Any unit tests registered with the Meson Build system will automatically
be run with 'ninja test'.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
---
 .gitlab-ci.yml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 .gitlab-ci.yml

Patch

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 000000000000..8b4b4b12d368
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,14 @@ 
+image: gcc
+
+build:
+  stage: build
+  before_script:
+    - apt update && apt -y install meson
+  script:
+    - mkdir libcamera && cd libcamera && meson .. && ninja
+    - ninja test
+  artifacts:
+    paths:
+      - libcamera/lib/libcamera.so
+      - libcamera/test/test_init
+      - meson-logs/testlog.txt