.gitlab-ci.yml 2.31 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
stages:
  - test
  - build
  - deploy

clazy:
  stage: test
  image: kaidan/neon-bionic
  variables:
    CMAKE_CXX_COMPILER: clazy
  script: utils/travis/build.sh

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

ubuntu-trusty:
  stage: build
  image: kaidan/ubuntu-trusty
  script: utils/travis/build.sh

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

40
linux-appimage:
41
  stage: deploy
42
  image: kaidan/ubuntu-trusty
43
  script: utils/build-linux-appimage.sh
44
  variables:
45
    QXMPP_BUILD: /usr
46
  allow_failure: true
47 48 49
  artifacts:
    paths:
      - "*.AppImage"
50
      - "*.AppImage.zsync"
51 52
    expire_in: 1 week

Jonah Brüchert's avatar
Jonah Brüchert committed
53
click-xenial:
54
  stage: deploy
Jonah Brüchert's avatar
Jonah Brüchert committed
55
  image: kaidan/ubuntu-touch-xenial
56
  script: utils/travis/build.sh
Jonah Brüchert's avatar
Jonah Brüchert committed
57 58
  variables:
    PLATFORM: ubuntu-touch
59
  artifacts:
Linus Jahn's avatar
Linus Jahn committed
60
    paths:
61
      - "*.click"
62
    expire_in: 1 week
Jonah Brüchert's avatar
Jonah Brüchert committed
63

64 65 66 67 68 69 70 71 72 73 74
windows-mxe:
  stage: deploy
  image: kaidan/windows-mxe
  script:
    - utils/build-windows-mxe.sh
    - mv build/bin/kaidan.exe kaidan.exe
  artifacts:
    paths:
      - "kaidan.exe"
    expire_in: 1 week

Jonah Brüchert's avatar
Jonah Brüchert committed
75 76 77 78
android:
  stage: deploy
  image: kdeorg/android-sdk
  script:
79
    - sudo apt update
Jonah Brüchert's avatar
Jonah Brüchert committed
80 81 82
    - sudo apt -y install inkscape optipng
    - GIT_EXTRA="--branch ${KF5_VERSION}" /opt/helpers/build-kde-dependencies --withProject kirigami
    - /opt/helpers/build-cmake qxmpp https://github.com/qxmpp-project/qxmpp.git -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF
83 84 85 86
    - GIT_EXTRA="--branch ${CI_COMMIT_REF_NAME} --recursive" /opt/helpers/build-cmake ${CI_PROJECT_NAME} ${CI_REPOSITORY_URL} -DQTANDROID_EXPORTED_TARGET=kaidan -DANDROID_APK_DIR=${CI_PROJECT_DIR}/src/${CI_PROJECT_NAME}/misc/android -DI18N=1
    - ${CI_PROJECT_DIR}/src/${CI_PROJECT_NAME}/utils/render-logos.sh
    - /opt/helpers/create-apk ${CI_PROJECT_NAME}
    - mv ${CI_PROJECT_DIR}/build/${CI_PROJECT_NAME}/kaidan_build_apk/build/outputs/apk/kaidan_build_apk-debug.apk ${CI_PROJECT_DIR}
Jonah Brüchert's avatar
Jonah Brüchert committed
87 88 89 90 91 92 93 94
  variables:
    KF5_VERSION: master
  artifacts:
    paths:
      - "kaidan_build_apk-debug.apk"
    expire_in: 1 week


Jonah Brüchert's avatar
Jonah Brüchert committed
95 96 97
variables:
  GIT_SUBMODULE_STRATEGY: recursive
  BUILD_SYSTEM: cmake
98
  BUILD_TYPE: Release