.gitlab-ci.yml 2.52 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
stages:
  - test
  - build
  - deploy

clazy:
  stage: test
  image: kaidan/neon-bionic
  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 36 37 38 39 40

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

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

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

Jonah Brüchert's avatar
Jonah Brüchert committed
66 67
android:
  stage: deploy
68
  image: kdeorg/android-arm-sdk
Jonah Brüchert's avatar
Jonah Brüchert committed
69
  script:
70
    - sudo apt update
Jonah Brüchert's avatar
Jonah Brüchert committed
71 72 73
    - 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
Linus Jahn's avatar
Linus Jahn committed
74
    - /opt/helpers/build-cmake zxing-cpp https://github.com/nu-book/zxing-cpp.git
75
    - 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 -DUSE_KNOTIFICATIONS=OFF
76 77 78
    - ${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
79 80
  variables:
    KF5_VERSION: master
81
  allow_failure: true
Jonah Brüchert's avatar
Jonah Brüchert committed
82 83 84 85 86
  artifacts:
    paths:
      - "kaidan_build_apk-debug.apk"
    expire_in: 1 week

87 88 89 90 91 92
mac-osxcross:
  stage: deploy
  image: kaidan/mac-osxcross
  script:
    - utils/build-mac-osxcross.sh
    - tar -cf kaidan.tar -C build/bin/ kaidan.app
93
  allow_failure: true
94 95 96 97
  artifacts:
    paths:
      - "kaidan.tar"
    expire_in: 1 week
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