btrfs-progs: check: repair block group accounting in lowmem mode
[btrfs-progs-unstable/devel.git] / .travis.yml
blob50b3c1c85085e1428215d8ff5e641c525bd440cc
2 # Copyright (C) 2016 Roman Lebedev.
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public
6 # License v2 as published by the Free Software Foundation.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # General Public License for more details.
13 # You should have received a copy of the GNU General Public
14 # License along with this program; if not, write to the
15 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
16 # Boston, MA 021110-1307, USA.
19 sudo: required
21 language: c
22 compiler:
23   - gcc
24   - clang
26 cache:
27   ccache: true
29 git:
30   depth: 2
32 dist: trusty
33 group: unstable
35 branches:
36   only:
37   - devel
38   - coverity_scan
39   - master
40   - release-test
42 env:
43   global:
44    # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
45    #   via the "travis encrypt" command using the project repo's public key
46    - secure: "aOqVfsh0m0iR3ggfuqhri4RHZK1LkQPDfNvPPQLN6VwJnz9QrI7TvLovTM1JwfX+nkyNhRq33+OahQb7PEHWPctFo6o42CcN837syF2fg8ZhTmcU1abJL29GUN/bH3xZXJJoUNJUW79Bp098GEcEmypxJ29Fxs5FQKT57O2FnnJXQLZhsDvSC1tuHtHEnCU1EGmZ6g4QI+eaS3zxKr343WCwRX6xolKHaLZX/UsYMbIMJ1YBaK2zCyOpaXOflQbloI1gcrUcoalIFuwPVbYnu2oXqzsuzHV0ekN+zMAECDNYrTr/OEA0bLR57WC0krLiAr+tA6Rq5E1D6JHg3WxDE7tbuFmrhxW23S9x6xw4+L5KuwNdsIZEdybn4q6zCkkHH3PgOFRF8taxxHKsfJ9fWxZM/kvQa5CNClDrZmfso9U8yWrYgL6fi3fIcuVLE29N2K0v9LkWlsK0REn5/uiEKO5rJ25ytpzCoUg9IRRgMPJaoPtZhSrK+ywZlJqg3f5eRqA7W1A4AEK5cOmWGFW2MOGmTtzhHG/xY0yaPYxgB7u2b7ji8BQdOn3p0ttmBFBxbDChb3LUH+d21iORrYVTG3IDziQTdBLCn/ZUypcLlLXLkkgZMQ9kLhArRmuqlTqPoR2+GNVjRP/uxwZXcszvEb0TATI11rieJW6TN1inWgY="
48 before_install:
49   - sudo apt-get update -qq
50   - sudo apt-get install -qq e2fslibs-dev gcc libacl1-dev libblkid-dev liblzo2-dev make pkg-config udev zlib1g-dev acl attr reiserfsprogs
51   - echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
52   - "mkdir tmp-reiser;
53      cd tmp-reiser;
54      wget https://www.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/v3.6.27/reiserfsprogs-3.6.27.tar.xz;
55      tar xf reiserfsprogs-3.6.27.tar.xz;
56      cd reiserfsprogs-3.6.27;
57      ./configure --prefix=/usr;
58      make all;
59      sudo make install;
60      cd ../..
61     "
62   - "mkdir tmp-zstd;
63      cd tmp-zstd;
64      wget https://github.com/facebook/zstd/archive/v1.3.1.tar.gz;
65      tar xf v1.3.1.tar.gz;
66      cd zstd-1.3.1;
67      make;
68      sudo make install PREFIX=/usr;
69      cd ../..
70     "
71   - "./autogen.sh && ./configure --disable-documentation && make"
73 addons:
74   coverity_scan:
75     project:
76       name: "kdave/btrfs-progs"
77       description: "btrfs-progs"
78     notification_email: dsterba@suse.cz
79     build_command_prepend: "./autogen.sh && ./configure --disable-documentation"
80     build_command: "make"
81     branch_pattern: coverity_scan
83 script:
84   - "if ./travis-should-run-test; then make TEST_LOG=dump test-cli; fi"
85   - "if ./travis-should-run-test; then make TEST_LOG=dump test-mkfs; fi"
86   - "if ./travis-should-run-test; then make TEST_LOG=dump test-check; fi"
87   - "if ./travis-should-run-test; then make TEST_LOG=dump test-misc; fi"
88   - "if [ $TRAVIS_BRANCH = release-test ]; then make TEST_LOG=dump test-convert; fi"