linux:test:
    image: ubuntu:22.04
    stage: test
    script:
        - pip3 install gcovr
        - ls -l build || true
        - mkdir -p build
        - cd build
        - cmake .. -DCMAKE_CXX_FLAGS=--coverage
        - make tests_run
        #- make tests_coverage
    #artifacts:
        #paths:
            #- build/coverage
    when: always
    needs: []

linux:build:
    image: ubuntu:latest
    stage: build
    script:
        - mkdir build
        - cd build
        - cmake .. -DCMAKE_CXX_FLAGS="-Werror -pedantic"
        - make VERBOSE=1
    artifacts:
        paths:
            - build/bin/glaxnimate
    when: always
