You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.gitlab-ci.yml 1.3 KiB

123456789101112131415161718192021222324252627282930313233343536
  1. image: debian:testing
  2. variables:
  3. DEBIAN_FRONTEND: noninteractive
  4. test as root:
  5. stage: test
  6. script:
  7. - adduser --home /home/travis travis --quiet --disabled-login --gecos "" --uid 1000
  8. - rm -f /etc/dpkg/dpkg.cfg.d/excludes
  9. - apt-get update
  10. - apt-get install -qq build-essential expect gcovr sudo
  11. - chmod -R o+rwX $PWD
  12. - ./prepare-release travis-ci
  13. - sudo -u travis mkdir build
  14. - sudo -u travis env -C build cmake -DCMAKE_BUILD_TYPE=Coverage -G Ninja ..
  15. - sudo -u travis ninja -C build
  16. - CTEST_OUTPUT_ON_FAILURE=1 ninja -C build test
  17. - unbuffer ./test/integration/run-tests -q -j 4
  18. - gcovr
  19. test as user:
  20. stage: test
  21. script:
  22. - adduser --home /home/travis travis --quiet --disabled-login --gecos "" --uid 1000
  23. - rm -f /etc/dpkg/dpkg.cfg.d/excludes
  24. - apt-get update
  25. - apt-get install -qq build-essential expect gcovr sudo
  26. - chmod 755 /root
  27. - chmod -R o+rwX $PWD
  28. - ./prepare-release travis-ci
  29. - sudo -u travis mkdir build
  30. - sudo -u travis env -C build cmake -DCMAKE_BUILD_TYPE=Coverage -G Ninja ..
  31. - sudo -u travis ninja -C build
  32. - sudo -u travis CTEST_OUTPUT_ON_FAILURE=1 ninja -C build test
  33. - sudo -u travis unbuffer ./test/integration/run-tests -q -j 4
  34. - sudo -u travis gcovr