Skip to content

Commit

Permalink
chore(build): remove build process from repo
Browse files Browse the repository at this point in the history
Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
  • Loading branch information
mittachaitu committed Sep 4, 2020
1 parent 95d2d40 commit 921b021
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 543 deletions.
37 changes: 13 additions & 24 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,14 @@ jobs:
- RUN_UZFS_TESTS=0
- RUN_ZTESTS=1
- RELEASE_TAG_DOWNSTREAM=0
- os: linux
arch: arm64
env:
- ZFS_BUILD_TAGS=1
- RUN_UZFS_TESTS=0
- RUN_ZTESTS=0
- RELEASE_TAG_DOWNSTREAM=0

before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
- sudo apt-get install --yes -qq gcc-6 g++-6
- sudo apt-get install --yes -qq build-essential autoconf libtool gawk alien fakeroot libaio-dev jq
# linux-header package name is different on arm.
- if [ "$TRAVIS_CPU_ARCH" == "arm64" ]; then
sudo apt-get install --yes -qq linux-headers-generic;
else
sudo apt-get install --yes -qq linux-headers-$(uname -r);
fi
- sudo apt-get install --yes -qq linux-headers-$(uname -r);
- sudo apt-get install --yes -qq zlib1g-dev uuid-dev libattr1-dev libblkid-dev libselinux-dev libudev-dev libssl-dev libjson-c-dev
- sudo apt-get install --yes -qq lcov libjemalloc-dev
# packages for tests - only on amd64
- if [ "$TRAVIS_CPU_ARCH" == "amd64" ]; then
sudo apt-get install --yes -qq parted lsscsi ksh attr acl nfs-kernel-server fio;
fi
Expand Down Expand Up @@ -90,15 +76,10 @@ install:
sudo dpkg -i *.deb;
fi
- cd ..
# Build libcstor for uzfs feature
# Clone libcstor for uzfs feature
- git clone https://github.com/openebs/libcstor.git
- cd libcstor
- if [ ${TRAVIS_BRANCH} == "develop" ]; then git checkout master; else git checkout ${TRAVIS_BRANCH} || git checkout master; fi
- sh autogen.sh;
- ./configure --enable-debug --with-zfs-headers=$PWD/../cstor/include --with-spl-headers=$PWD/../cstor/lib/libspl/include
- make -j4;
- sudo make install;
- sudo ldconfig
# return to cstor code
- popd
- sh autogen.sh
Expand All @@ -110,6 +91,16 @@ install:
make --no-print-directory -s pkg-utils pkg-kmod || travis_terminate 1;
sudo dpkg -i *.deb || travis_terminate 1;
fi
- pushd .
## Compile libcstor code since main file i.e zrepl.c has moved to libcstor
- cd ..
- cd libcstor
- sh autogen.sh;
- ./configure --enable-debug --with-zfs-headers=$PWD/../cstor/include --with-spl-headers=$PWD/../cstor/lib/libspl/include
- make -j4;
- sudo make install;
- sudo ldconfig
- popd
before_script:
- make cstyle;
script:
Expand All @@ -123,9 +114,7 @@ script:
sudo /sbin/modprobe zfs;
travis_wait 10 /sbin/ztest || travis_terminate 1;
fi
- if [ $ZFS_BUILD_TAGS = 1 ]; then
./build_image.sh || travis_terminate 1;
fi

# If this build is running due to travis release tag, and
# this job indicates to push the release downstream, then
# go ahead and tag the dependent repo.
Expand Down
124 changes: 0 additions & 124 deletions build_image.sh

This file was deleted.

2 changes: 1 addition & 1 deletion cmd/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ SUBDIRS += mount_zfs fsck_zfs zvol_id vdev_id arcstat dbufstat zed
SUBDIRS += arc_summary raidz_test zgenhostid

if ENABLE_UZFS
SUBDIRS += zrepl uzfs_test
SUBDIRS += uzfs_test
endif

1 change: 0 additions & 1 deletion cmd/zrepl/.gitignore

This file was deleted.

27 changes: 0 additions & 27 deletions cmd/zrepl/Makefile.am

This file was deleted.

Loading

0 comments on commit 921b021

Please sign in to comment.