.gitlab-ci.yml 1.13 KB
Newer Older
1
image: debian:unstable
2 3

before_script:
4 5
  - echo 'deb-src http://deb.debian.org/debian unstable main' >> /etc/apt/sources.list
  - apt-get update
6
  - apt-get build-dep --yes --no-install-recommends poppler
7
  - apt-get install --yes --no-install-recommends ninja-build libcurl4-openssl-dev curl ca-certificates locales libc++-dev libc++abi-dev clang
8 9 10 11 12 13 14
  - echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen
  - locale-gen

variables:
  LANG: en_US.UTF-8
  LANGUAGE: en_US:en
  LC_ALL: en_US.UTF-8
15 16 17 18

build:
  stage: build
  script:
19
    - mkdir -p build && cd build
20 21
    - curl https://gitlab.freedesktop.org/poppler/test/-/archive/master/test-master.tar.gz | tar xz
    - cmake -G Ninja -DTESTDATADIR=$PWD/test-master ..
22
    - ninja
23
    - ctest --output-on-failure
24 25 26
  cache:
    paths:
      - build/
27 28 29 30 31 32 33 34 35 36 37 38

build_clang_libcpp:
  stage: build
  script:
    - mkdir -p build_clang && cd build_clang
    - curl https://gitlab.freedesktop.org/poppler/test/-/archive/master/test-master.tar.gz | tar xz
    - CXX=clang++ cmake -G Ninja -DCMAKE_CXX_FLAGS=-stdlib=libc++ -DTESTDATADIR=$PWD/test-master ..
    - ninja
    - ctest --output-on-failure
  cache:
    paths:
      - build_clang/