Skip to content

Commit

Permalink
[CCS-68] Travis integration with ZoL (#6)
Browse files Browse the repository at this point in the history
[CCS-68] travis integration with ZoL
  • Loading branch information
vishnuitta authored and Jan Kryl committed Jun 26, 2018
1 parent d1ed1be commit 83e551d
Showing 3 changed files with 653 additions and 136 deletions.
48 changes: 48 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
language: c
sudo: required
env:
global:
# Travis limits maximum log size, we have to cut tests output
- ZFS_TEST_TRAVIS_LOG_MAX_LENGTH=800
matrix:
# tags are mainly in ascending order
- ZFS_BUILD_TAGS=0
- ZFS_BUILD_TAGS=1
before_install:
# - sudo apt-get -qq update
- sudo apt-get install --yes -qq build-essential autoconf libtool gawk alien fakeroot linux-headers-$(uname -r)
- sudo apt-get install --yes -qq zlib1g-dev uuid-dev libattr1-dev libblkid-dev libselinux-dev libudev-dev libssl-dev
# packages for tests
- sudo apt-get install --yes -qq parted lsscsi ksh attr acl nfs-kernel-server fio
install:
- cd ..
- git clone https://github.com/zfsonlinux/spl
- cd spl
- git checkout spl-0.7-release
- sh autogen.sh
- ./configure
- if [ $ZFS_BUILD_TAGS = 0 ]; then
make;
else
make --no-print-directory -s pkg-utils pkg-kmod;
sudo dpkg -i *.deb;
fi
- cd ../ZoL
- sh autogen.sh
- ./configure
- if [ $ZFS_BUILD_TAGS = 0 ]; then
make;
else
make --no-print-directory -s pkg-utils pkg-kmod;
sudo dpkg -i *.deb;
fi
script:
- if [ $ZFS_BUILD_TAGS = 0 ]; then
echo "UDone..";
else
travis_wait 100 /usr/share/zfs/zfs-tests.sh -v;
fi
after_failure:
- find /var/tmp/test_results/current/log -type f -name '*' -printf "%f\n" -exec cut -c -$ZFS_TEST_TRAVIS_LOG_MAX_LENGTH {} \;
after_success:
- find /var/tmp/test_results/current/log -type f -name '*' -printf "%f\n" -exec cut -c -$ZFS_TEST_TRAVIS_LOG_MAX_LENGTH {} \;
Loading

0 comments on commit 83e551d

Please sign in to comment.