Add Qt-5.12 to CI
authorRoeland Jago Douma <roeland@famdouma.nl>
Thu, 21 Mar 2019 10:36:23 +0000 (11:36 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Thu, 21 Mar 2019 14:57:40 +0000 (15:57 +0100)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
.drone.yml

index 8ade11189270b679c69c14181c42fd351fc5a623..1c0aaf855e2c42ad64a1d43baee2e5631cf05e82 100644 (file)
@@ -187,6 +187,72 @@ pipeline:
             matrix:
                 TESTS: qt-5.11-clang
 
+    qt-5.12:
+        image: nextcloudci/client-5.12:client-5.12-2
+        commands:
+            # Install QtKeyChain
+            - /bin/bash -c "
+              export CC=gcc-7 &&
+              export CXX=g++-7 &&
+              source /opt/qt512/bin/qt512-env.sh &&
+              cd /tmp &&
+              git clone https://github.com/frankosterfeld/qtkeychain.git &&
+              cd qtkeychain &&
+              git checkout v0.9.1 &&
+              mkdir build &&
+              cd build &&
+              cmake ../ &&
+              make &&
+              make install"
+            # Build client
+            - /bin/bash -c "
+              export CC=gcc-7 &&
+              export CXX=g++-7 &&
+              source /opt/qt512/bin/qt512-env.sh &&
+              mkdir build &&
+              cd build &&
+              cmake -D NO_SHIBBOLETH=1 -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 ../ &&
+              make &&
+              useradd -m -s /bin/bash test &&
+              chown -R test:test . &&
+              su -c 'ctest --output-on-failure' test"
+        when:
+            matrix:
+                TESTS: qt-5.12
+
+    qt-5.12-clang:
+        image: nextcloudci/client-5.12:client-5.12-2
+        commands:
+            # Install QtKeyChain
+            - /bin/bash -c "
+              export CC=clang-6.0 &&
+              export CXX=clang++-6.0 &&
+              source /opt/qt512/bin/qt512-env.sh &&
+              cd /tmp &&
+              git clone https://github.com/frankosterfeld/qtkeychain.git &&
+              cd qtkeychain &&
+              git checkout v0.9.1 &&
+              mkdir build &&
+              cd build &&
+              cmake ../ &&
+              make &&
+              make install"
+            # Build client
+            - /bin/bash -c "
+              export CC=clang-6.0 &&
+              export CXX=clang++-6.0 &&
+              source /opt/qt512/bin/qt512-env.sh &&
+              mkdir build &&
+              cd build &&
+              cmake -D NO_SHIBBOLETH=1 -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 ../ &&
+              make &&
+              useradd -m -s /bin/bash test &&
+              chown -R test:test . &&
+              su -c 'ctest --output-on-failure' test"
+        when:
+            matrix:
+                TESTS: qt-5.12-clang
+
     AppImage:
         image: nextcloudci/client-5.11:client-5.11-3
         commands:
@@ -221,6 +287,8 @@ matrix:
         - TESTS: qt-5.10
         - TESTS: qt-5.11
         - TESTS: qt-5.11-clang
+        - TESTS: qt-5.12
+        - TESTS: qt-5.12-clang
         - BUILD: AppImage
         - BUILD: Debian
         - TESTS: documentation