]> git.saurik.com Git - apt.git/blame - .travis.yml
The entire concept of PendingError() is flawed :/.
[apt.git] / .travis.yml
CommitLineData
db0e2486 1language: cpp
e09a8a61 2cache: ccache
b2640c0a 3sudo: required
6a778e35 4dist: trusty
db0e2486 5before_install:
d4cfc248 6 - sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu/ wily main universe' -y
dfd863ea 7 - sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu/ xenial main' -y
e7cab38e 8 - |
d4cfc248 9 sudo sh -c '/bin/echo -e "Package: *\nPin: release n=wily\nPin-Priority: 1" > /etc/apt/preferences.d/wily'
dfd863ea 10 sudo sh -c '/bin/echo -e "Package: *\nPin: release n=xenial\nPin-Priority: 1" > /etc/apt/preferences.d/xenial'
b2640c0a 11 - sudo apt-get update -qq
3261271e 12install:
0390edd5 13 - sudo apt-get -qq -y -t wily install gettext liblz4-dev python3-apt
e09a8a61 14 - sudo apt-get -qq -y -t xenial install cmake ninja-build
ecb8e9d7 15 - sudo ./prepare-release travis-ci
dfd863ea 16before_script:
acddd918 17 - ( mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Coverage -G Ninja .. )
e09a8a61 18 - ninja -C build
fa74b4ec 19script:
e09a8a61
JAK
20 - CTEST_OUTPUT_ON_FAILURE=1 ninja -C build test
21 - DESTDIR=$PWD/rootdir chronic ninja -C build install
30ea7a60 22 - ./test/integration/run-tests -qq
b2640c0a 23 - sudo adduser --force-badname --system --home /nonexistent --no-create-home --quiet _apt || true
acddd918
JAK
24 - sudo chmod go+x /home/travis
25 - sudo chmod -R go+rwX /home/travis/build
30ea7a60 26 - sudo ./test/integration/run-tests -qq
374a6efa 27after_script:
acddd918
JAK
28 - cd build
29 - gcov -r $(find -name '*.gcno')
30 - bash <(curl -s https://codecov.io/bash)