diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-06-22 14:09:24 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-06-28 15:50:35 +0300 |
commit | 97ea6c54bc1e32f9ed0e094ac62b9a35a77a2405 (patch) | |
tree | 16d232f6f5e709fec8cbffc2fa1930f8d0efe9c2 /.drone.yml | |
parent | 38b89a3fa00a480908129ae48633f8cc4826ab6b (diff) |
Run tests on drone
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to '.drone.yml')
-rw-r--r-- | .drone.yml | 42 |
1 files changed, 30 insertions, 12 deletions
diff --git a/.drone.yml b/.drone.yml index 93023dfd0..67c22c71a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -25,8 +25,11 @@ pipeline: source /opt/qt57/bin/qt57-env.sh && mkdir build && cd build && - cmake -D NO_SHIBBOLETH=1 ../ && - make" + 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.7 @@ -50,8 +53,11 @@ pipeline: source /opt/qt58/bin/qt58-env.sh && mkdir build && cd build && - cmake -D NO_SHIBBOLETH=1 ../ && - make" + 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.8 @@ -75,8 +81,11 @@ pipeline: source /opt/qt59/bin/qt59-env.sh && mkdir build && cd build && - cmake -D NO_SHIBBOLETH=1 ../ && - make" + 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.9 @@ -104,8 +113,11 @@ pipeline: source /opt/qt510/bin/qt510-env.sh && mkdir build && cd build && - cmake -D NO_SHIBBOLETH=1 ../ && - make" + 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.10 @@ -133,8 +145,11 @@ pipeline: source /opt/qt511/bin/qt511-env.sh && mkdir build && cd build && - cmake -D NO_SHIBBOLETH=1 ../ && - make" + 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.11 @@ -163,8 +178,11 @@ pipeline: source /opt/qt511/bin/qt511-env.sh && mkdir build && cd build && - cmake -D NO_SHIBBOLETH=1 ../ && - make" + 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.11-clang |