]> git.saurik.com Git - apt.git/blame_incremental - .travis.yml
For ReMap to work, S has to be marked volatile :/.
[apt.git] / .travis.yml
... / ...
CommitLineData
1language: cpp
2cache: ccache
3sudo: required
4dist: trusty
5before_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
12install:
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
16before_script:
17 - ( mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Coverage -G Ninja .. )
18 - ninja -C build
19script:
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
27after_script:
28 - cd build
29 - gcov -r $(find -name '*.gcno')
30 - bash <(curl -s https://codecov.io/bash)