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.
 
 
 
 
 
 

34 lines
1.2 KiB

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