Commit c230b247 authored by Robert Izzard's avatar Robert Izzard
Browse files

Merge branch 'master' of gitlab.com:rob.izzard/libcdict

parents 21c079ef b2be768f
Loading
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+37 −0
Original line number Diff line number Diff line
# libcdict CI build and tests

# We default to building on Ubuntu-latest
# then install the required tools, build and
# test.

default:
    image: ubuntu:latest

stages:          # List of stages for jobs, and their order of execution
  - build
  - test

build-gcc:       # build libcdict using gcc
  stage: build
  script:
    - echo "Installing packages"
    - apt-get update && apt-get install -y gawk gcc git perl-base sed meson ninja-build 
    - echo "Compiling libcdict..."
    - CC=gcc meson setup --buildtype release builddir
    - ninja -C builddir
    - echo "Compile of libcdict complete."
  artifacts:
    paths:
      - builddir

test-cdict:   # run cdict-config to test libcdict build
  stage: test    
  dependencies:
    - build-gcc
  script:
    - echo "Running libcdict tests..."
    - ./builddir/cdict-config --tests
    - echo "Test of libcdict complete."