# Use Kvazaar CI base image which includes the build tools and ffmpeg + hmdec in ${HOME}/bin
image: ultravideo/kvazaar_ci_base:latest


# Build kvazaar and run tests
build-kvazaar:
  stage: build
  script:
    - ./autogen.sh
    - ./configure --enable-werror
    - make --jobs=2 V=1
  artifacts:
    paths:
    - src/kvazaar
    - src/.libs
    expire_in: 1 week

run-tests:
  stage: test
  script:
    - ./autogen.sh
    - ./configure
    - export PATH="${HOME}/bin:${PATH}"
    - export KVAZAAR_OVERRIDE_angular_pred=generic
    - export KVAZAAR_OVERRIDE_sao_band_ddistortion=generic
    - export KVAZAAR_OVERRIDE_sao_edge_ddistortion=generic
    - export KVAZAAR_OVERRIDE_calc_sao_edge_dir=generic
    - make check VERBOSE=1

# Use Kvazaar CI base image which includes the build tools and ffmpeg + hmdec in ${HOME}/bin
image: ultravideo/kvazaar_ci_base:latest


# Build kvazaar and run tests
build-kvazaar:
  stage: build
  script:
    - ./autogen.sh
    - ./configure --enable-werror || (cat config.log && false)
    - make --jobs=8 V=1
  artifacts:
    paths:
    - src/kvazaar
    - src/.libs
    expire_in: 1 week

run-tests:
  stage: test
  script:
    - ./autogen.sh
    - ./configure
    - export PATH="${HOME}/bin:${PATH}"
    - export KVAZAAR_OVERRIDE_angular_pred=generic
    - export KVAZAAR_OVERRIDE_sao_band_ddistortion=generic
    - export KVAZAAR_OVERRIDE_sao_edge_ddistortion=generic
    - export KVAZAAR_OVERRIDE_calc_sao_edge_dir=generic
    - make check VERBOSE=1

Print config.log when configure fails in Gitlab CI
Print config.log when configure fails in Gitlab CI
