]> git.saurik.com Git - apt.git/blob - .travis.yml
Don't download "optional" files not in Release :/.
[apt.git] / .travis.yml
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 -DCMAKE_BUILD_TYPE=Coverage -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 chmod go+x /home/travis
25 - sudo chmod -R go+rwX /home/travis/build
26 - sudo ./test/integration/run-tests -qq
27 after_script:
28 - cd build
29 - gcov -r $(find -name '*.gcno')
30 - bash <(curl -s https://codecov.io/bash)