.gitlab-ci.yml 755 Bytes
Newer Older
Michael Reeves's avatar
Michael Reeves committed
1
image: reporter123/cmake:bionic
Michael Reeves's avatar
Michael Reeves committed
2 3 4 5 6 7 8

build:
  stage: build
  
  before_script: 
     - apt-get update && apt-get install -y extra-cmake-modules gettext qtbase5-dev extra-cmake-modules libkf5i18n-dev libkf5coreaddons-dev libkf5iconthemes-dev libkf5parts-dev libkf5doctools-dev libkf5crash-dev 
  script: 
Michael Reeves's avatar
Michael Reeves committed
9
    - cmake -DBUILD_TESTING=YES .
Michael Reeves's avatar
Michael Reeves committed
10
    - make
Michael Reeves's avatar
Michael Reeves committed
11
    - make ARGS="-V -E appstreamtest" test #exclude appstreamtest this does not run properly in my image
Michael Reeves's avatar
Michael Reeves committed
12
    - make install
13 14 15 16 17 18
  
  retry:
    max: 2
    when:
      - runner_system_failure
      - stuck_or_timeout_failure
Michael Reeves's avatar
Michael Reeves committed
19 20 21 22 23 24 25 26
  #artifacts:
  #  paths:
  #    - mybinary
  # depending on your build setup it's most likely a good idea to cache outputs to reduce the build time
  # cache:
  #   paths:
  #     - "*.o"