Commit 820261b6 authored by Robert Izzard's avatar Robert Izzard
Browse files

Update .gitlab-ci.yml file with build and test

parent d7377319
Loading
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -6,15 +6,17 @@ stages: # List of stages for jobs, and their order of execution
  - build
  - test

build-job:       # This job runs in the build stage, which runs first.
build-gcc:       # This job runs in the build stage, which runs first.
  stage: build
  script:
    - echo "Installing packages"
    - apt install gcc git perl sed meson ninja 
    - echo "Compiling libcdict..."
    - meson setup --buildtype release builddir
    - CC=gcc meson setup --buildtype release builddir
    - ninja -C builddir
    - echo "Compile of libcdict complete."

unit-test-job:   # This job runs in the test stage.
test-cdict:   # This job runs in the test stage.
  stage: test    # It only starts when the job in the build stage completes successfully.
  script:
    - echo "Running libcdict tests..."