forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CCS-68] Travis integration with ZoL (#6)
[CCS-68] travis integration with ZoL
- Loading branch information
1 parent
3c7fa6c
commit 2739466
Showing
3 changed files
with
652 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 {} \; |
Oops, something went wrong.