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.
 
 
 
 
 
 

25 lines
1.0 KiB

  1. language: cpp
  2. cache: ccache
  3. sudo: required
  4. dist: trusty
  5. before_install:
  6. - sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu/ wily main universe' -y
  7. - sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu/ xenial main' -y
  8. - |
  9. sudo sh -c '/bin/echo -e "Package: *\nPin: release n=wily\nPin-Priority: 1" > /etc/apt/preferences.d/wily'
  10. sudo sh -c '/bin/echo -e "Package: *\nPin: release n=xenial\nPin-Priority: 1" > /etc/apt/preferences.d/xenial'
  11. - sudo apt-get update -qq
  12. install:
  13. - sudo apt-get -qq -y -t wily install gettext liblz4-dev python3-apt
  14. - sudo apt-get -qq -y -t xenial install cmake ninja-build
  15. - sudo ./prepare-release travis-ci
  16. before_script:
  17. - ( mkdir build && cd build && cmake -G Ninja .. )
  18. - ninja -C build
  19. script:
  20. - CTEST_OUTPUT_ON_FAILURE=1 ninja -C build test
  21. - DESTDIR=$PWD/rootdir chronic ninja -C build install
  22. - ./test/integration/run-tests -qq
  23. - sudo adduser --force-badname --system --home /nonexistent --no-create-home --quiet _apt || true
  24. - sudo ./test/integration/run-tests -qq