.gitlab-ci.yml 1.58 KB
Newer Older
1 2 3 4 5 6 7
stages:
  - test
  - build
  - deploy

clazy:
  stage: test
8
  image: kaidan/debian-unstable
9 10 11
  variables:
    CMAKE_CXX_COMPILER: clazy
  script: utils/travis/build.sh
12
  allow_failure: true
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

qmllint:
  stage: test
  image: kaidan/neon-bionic
  script: qmllint $(find . -name "*.qml")
  variables:
    QT_SELECT: 5

neon-bionic:
  stage: build
  image: kaidan/neon-bionic
  script: utils/travis/build.sh

debian-sid:
  stage: build
  image: kaidan/debian-unstable
  script: utils/travis/build.sh

archlinux:
  stage: build
  image: kaidan/archlinux
  script: utils/travis/build.sh

36
linux-appimage:
37
  stage: deploy
38
  image: kaidan/ubuntu-xenial
39
  script: utils/build-linux-appimage.sh
40
  variables:
41
    QXMPP_BUILD: /usr
42 43 44
  artifacts:
    paths:
      - "*.AppImage"
45
      - "*.AppImage.zsync"
46 47
    expire_in: 1 week

48 49 50 51 52 53
windows-mxe:
  stage: deploy
  image: kaidan/windows-mxe
  script:
    - utils/build-windows-mxe.sh
    - mv build/bin/kaidan.exe kaidan.exe
54
  allow_failure: true
55 56 57 58 59
  artifacts:
    paths:
      - "kaidan.exe"
    expire_in: 1 week

Jonah Brüchert's avatar
Jonah Brüchert committed
60 61
android:
  stage: deploy
62
  image: kdeorg/android-sdk
Jonah Brüchert's avatar
Jonah Brüchert committed
63
  script:
cacahueto's avatar
cacahueto committed
64
    - utils/build-android-docker.sh
Jonah Brüchert's avatar
Jonah Brüchert committed
65 66
  variables:
    KF5_VERSION: master
67
  allow_failure: true
Jonah Brüchert's avatar
Jonah Brüchert committed
68 69 70 71 72
  artifacts:
    paths:
      - "kaidan_build_apk-debug.apk"
    expire_in: 1 week

73 74 75 76 77 78
mac-osxcross:
  stage: deploy
  image: kaidan/mac-osxcross
  script:
    - utils/build-mac-osxcross.sh
    - tar -cf kaidan.tar -C build/bin/ kaidan.app
79
  allow_failure: true
80 81 82 83
  artifacts:
    paths:
      - "kaidan.tar"
    expire_in: 1 week
Jonah Brüchert's avatar
Jonah Brüchert committed
84

Jonah Brüchert's avatar
Jonah Brüchert committed
85 86 87
variables:
  GIT_SUBMODULE_STRATEGY: recursive
  BUILD_SYSTEM: cmake
88
  BUILD_TYPE: Release