.gitlab-ci.yml 1.66 KB
Newer Older
1 2 3 4 5 6 7 8 9
stages:
    - build
    - unit-tests
    - functional-tests

variables:
  GIT_SUBMODULE_STRATEGY: normal

build-linux:
10
    image: registry.videolan.org:5000/medialibrary:20181112164001
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
    tags:
      - debian
      - amd64
    stage: build
    script:
      - ./bootstrap
      - ./configure --enable-tests
      - make -j4
      - make -j4 check
    artifacts:
        paths:
          - unittest
          - samples
          - .libs/

unit-tests-linux:
27
    image: registry.videolan.org:5000/medialibrary:20181112164001
28 29 30 31 32 33 34 35
    tags:
      - debian
      - amd64
    stage: unit-tests
    script:
        - ./unittest

functional-tests-linux:
36
    image: registry.videolan.org:5000/medialibrary:20181112164001
37 38 39 40 41 42 43 44
    tags:
      - debian
      - amd64
    stage: functional-tests
    script:
        - ./samples -v

build-win32:
45
    image: registry.videolan.org:5000/medialibrary-win32:20181113011518
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
    tags:
      - win32
    stage: build
    script:
      - export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/prefix/lib/pkgconfig"
      - ./bootstrap
      - ./configure --enable-tests --host=i686-w64-mingw32 --disable-shared
      - make -j4
      - make -j4 check
    artifacts:
        paths:
          - unittest.exe
          - samples.exe
          - .libs/

build-win64:
62
    image: registry.videolan.org:5000/medialibrary-win64:20181113014943
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
    tags:
      - win64
    stage: build
    script:
      - export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/prefix/lib/pkgconfig"
      - ./bootstrap
      - ./configure --enable-tests --host=x86_64-w64-mingw32 --disable-shared
      - make -j4
      - make -j4 check
    artifacts:
        paths:
          - unittest.exe
          - samples.exe
          - .libs/