X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=.travis.yml;h=a9953bb3089e583bed78ff46b1a16425d669edcf;hb=51667947e435444d9e125189b2a07e3966ac145c;hp=15313df4f782cc0974f7acfa6efd904ab55c80cd;hpb=fd60bbfcba42954fd7157a9e6f852e776befa247;p=platform%2Fupstream%2Fbtrfs-progs.git diff --git a/.travis.yml b/.travis.yml index 15313df..a9953bb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,10 +23,14 @@ compiler: - gcc - clang -cache: ccache +cache: + ccache: true + directories: + - tmp-cached-reiser + - tmp-cached-zstd git: - depth: 2 + depth: 1 dist: trusty group: unstable @@ -38,6 +42,9 @@ branches: - master - release-test +services: + - docker + env: global: # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created @@ -46,8 +53,12 @@ env: before_install: - sudo apt-get update -qq - - sudo apt-get install -qq e2fslibs-dev gcc libacl1-dev libblkid-dev liblzo2-dev make pkg-config udev zlib1g-dev + - sudo apt-get install -qq e2fslibs-dev gcc libacl1-dev libblkid-dev liblzo2-dev make pkg-config udev zlib1g-dev acl attr reiserfsprogs python3-setuptools - echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca- + - docker pull kdave/ci-musl-x86_64 + - travis/build-dep-reiserfs + - travis/build-dep-zstd + - travis/build-default --disable-documentation addons: coverity_scan: @@ -60,8 +71,13 @@ addons: branch_pattern: coverity_scan script: - - "./autogen.sh && ./configure --disable-documentation && make" - - "make TEST_LOG=dump test-cli" - - "make TEST_LOG=dump test-mkfs" - - "make TEST_LOG=dump test-check" - - "make TEST_LOG=dump test-misc" + # quick build tests + - "if travis/should-run-test; then docker run -it --env CC=$CC kdave/ci-musl-x86_64 ./test-build $TRAVIS_BRANCH --disable-documentation --disable-backtrace; fi" + # real tests + - "if travis/should-run-test; then make TEST_LOG=dump test-cli; fi" + - "if travis/should-run-test; then make TEST_LOG=dump test-mkfs; fi" + - "if travis/should-run-test; then make TEST_LOG=dump test-check; fi" + - "if travis/should-run-test; then make TEST_LOG=dump TEST_ENABLE_OVERRIDE=true TEST_ARGS_CHECK=--mode=lowmem test-check; fi" + - "if travis/should-run-test; then make TEST_LOG=dump test-misc; fi" + # long running tests + - "if [ $TRAVIS_BRANCH = release-test ]; then make TEST_LOG=dump test-convert; fi"