.gitlab-ci.yml 2.57 KB
Newer Older
Akira TAGOH's avatar
Akira TAGOH committed
1 2 3 4 5 6 7 8
image: fedora:rawhide

stages:
  - build

before_script:
  - dnf -y upgrade --disablerepo=rawhide-modular --nogpgcheck fedora-repos fedora-repos-rawhide
  - dnf -y upgrade --disablerepo=rawhide-modular
Akira TAGOH's avatar
Akira TAGOH committed
9
  - dnf -y install --disablerepo=rawhide-modular --allowerasing --skip-broken @buildsys-build autoconf automake libtool gettext gettext-devel gperf expat-devel freetype-devel json-c-devel git docbook-utils docbook-utils-pdf bubblewrap
10
  - dnf -y install --disablerepo=rawhide-modular --allowerasing --skip-broken mingw64-gettext mingw64-freetype mingw64-expat wine
Akira TAGOH's avatar
Akira TAGOH committed
11

12
shared-build:
Akira TAGOH's avatar
Akira TAGOH committed
13 14 15 16 17 18 19 20
  stage: build
  script:
    - export BUILD_ID="fontconfig-$CI_JOB_NAME_$CI_COMMIT_SHA-$CI_JOB_ID"
    - export PREFIX="$(pwd)/prefix-$BUILD_ID"
    - export BUILDDIR="$(pwd)/build-$BUILD_ID"
    - export MAKEFLAGS="-j4"
    - mkdir "$BUILDDIR" "$PREFIX"
    - cd "$BUILDDIR"
21
    - ../autogen.sh --prefix="$PREFIX" --enable-shared --disable-static
Akira TAGOH's avatar
Akira TAGOH committed
22 23 24 25 26 27 28 29 30 31 32 33
    - make
    - make check
    - make install
    - make distcheck
  artifacts:
    name: fontconfig-$CI_COMMIT_SHA-$CI_JOB_ID
    when: always
    paths:
      - build-*/fontconfig-*.tar.bz2
      - build-*/fontconfig*/_build/sub/*.log
      - build-*/fontconfig*/_build/sub/test/*.log
      - build-*/fontconfig*/_build/sub/test/*.trs
34
      - build-*/fontconfig*/_build/sub/test/out*
Akira TAGOH's avatar
Akira TAGOH committed
35
      - build-*/*.log
Akira TAGOH's avatar
Akira TAGOH committed
36 37
      - build-*/test/*.log
      - build-*/test/*.trs
38
      - build-*/test/out*
Akira TAGOH's avatar
Akira TAGOH committed
39
      - prefix-*
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
static-build:
  stage: build
  script:
    - export BUILD_ID="fontconfig-$CI_JOB_NAME_$CI_COMMIT_SHA-$CI_JOB_ID"
    - export PREFIX="$(pwd)/prefix-$BUILD_ID"
    - export BUILDDIR="$(pwd)/build-$BUILD_ID"
    - export MAKEFLAGS="-j4"
    - mkdir "$BUILDDIR"
    - cd "$BUILDDIR"
    - ../autogen.sh --prefix="$PREFIX" --disable-shared --enable-static
    - make
    - make check
  artifacts:
    name: fontconfig-$CI_COMMIT_SHA-$CI_JOB_ID
    when: always
    paths:
      - build-*/*.log
      - build-*/test/*.log
      - build-*/test/*.trs
59
      - build-*/test/out*
Akira TAGOH's avatar
Akira TAGOH committed
60 61 62 63 64 65 66 67 68 69
mingw-build:
  stage: build
  script:
    - export BUILD_ID="fontconfig-$CI_JOB_NAME_$CI_COMMIT_SHA-$CI_JOB_ID"
    - export PREFIX="$(pwd)/prefix-$BUILD_ID"
    - export BUILDDIR="$(pwd)/build-$BUILD_ID"
    - export MAKEFLAGS="-j4"
    - mkdir "$BUILDDIR"
    - cd "$BUILDDIR"
    - eval `rpm --eval %{mingw64_env}`
70
    - ../autogen.sh --prefix="$PREFIX" --host=x86_64-mingw32 --disable-shared --enable-static
Akira TAGOH's avatar
Akira TAGOH committed
71 72 73 74 75 76 77 78 79
    - make
    - make check
  artifacts:
    name: fontconfig-$CI_COMMIT_SHA-$CI_JOB_ID
    when: always
    paths:
      - build-*/*.log
      - build-*/test/*.log
      - build-*/test/*.trs
80
      - build-*/test/out*