.gitlab-ci.yml 1.73 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
    expire_in: 1 week
47 48 49
  only:
    - master
    - stable
50

51 52 53 54 55 56
windows-mxe:
  stage: deploy
  image: kaidan/windows-mxe
  script:
    - utils/build-windows-mxe.sh
    - mv build/bin/kaidan.exe kaidan.exe
57
  allow_failure: true
58 59 60 61
  artifacts:
    paths:
      - "kaidan.exe"
    expire_in: 1 week
62 63 64
  only:
    - master
    - stable
65

Jonah Brüchert's avatar
Jonah Brüchert committed
66 67
android:
  stage: deploy
68
  image: kdeorg/android-sdk
Jonah Brüchert's avatar
Jonah Brüchert committed
69
  script:
cacahueto's avatar
cacahueto committed
70
    - utils/build-android-docker.sh
Jonah Brüchert's avatar
Jonah Brüchert committed
71 72
  variables:
    KF5_VERSION: master
73
  allow_failure: true
Jonah Brüchert's avatar
Jonah Brüchert committed
74 75
  artifacts:
    paths:
Jonah Brüchert's avatar
Jonah Brüchert committed
76 77
      - "kaidan_arm.apk"
      - "kaidan_arm64.apk"
Jonah Brüchert's avatar
Jonah Brüchert committed
78
    expire_in: 1 week
79 80 81
  only:
    - master
    - stable
Jonah Brüchert's avatar
Jonah Brüchert committed
82

83 84 85 86 87 88
mac-osxcross:
  stage: deploy
  image: kaidan/mac-osxcross
  script:
    - utils/build-mac-osxcross.sh
    - tar -cf kaidan.tar -C build/bin/ kaidan.app
89
  allow_failure: true
90 91 92 93
  artifacts:
    paths:
      - "kaidan.tar"
    expire_in: 1 week
94 95 96 97
  only:
    - master
    - stable

Jonah Brüchert's avatar
Jonah Brüchert committed
98

Jonah Brüchert's avatar
Jonah Brüchert committed
99 100 101
variables:
  GIT_SUBMODULE_STRATEGY: recursive
  BUILD_SYSTEM: cmake
102
  BUILD_TYPE: Release