btrfs-progs: ci: replace inline shell commands with scripts

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2018-02-08 01:49:11 +01:00
parent ba067ed4ee
commit 5432a68997
3 changed files with 31 additions and 19 deletions

View File

@ -53,25 +53,8 @@ before_install:
- sudo apt-get install -qq e2fslibs-dev gcc libacl1-dev libblkid-dev liblzo2-dev make pkg-config udev zlib1g-dev acl attr reiserfsprogs
- 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
- "mkdir tmp-reiser;
cd tmp-reiser;
wget https://www.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/v3.6.27/reiserfsprogs-3.6.27.tar.xz;
tar xf reiserfsprogs-3.6.27.tar.xz;
cd reiserfsprogs-3.6.27;
./configure --prefix=/usr;
make all;
sudo make install;
cd ../..
"
- "mkdir tmp-zstd;
cd tmp-zstd;
wget https://github.com/facebook/zstd/archive/v1.3.3.tar.gz;
tar xf v1.3.3.tar.gz;
cd zstd-1.3.3;
make;
sudo make install PREFIX=/usr;
cd ../..
"
- travis/build-dep-reiserfs
- travis/build-dep-zstd
- travis/build-default --disable-documentation
addons:

15
travis/build-dep-reiserfs Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
# download, build and install reiserfs library
version=3.6.27
set -e
mkdir tmp-reiser
cd tmp-reiser
wget https://www.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/v${version}/reiserfsprogs-${version}.tar.xz
tar xf reiserfsprogs-${version}.tar.xz
cd reiserfsprogs-${version}
./configure --prefix=/usr
make all
sudo make install

14
travis/build-dep-zstd Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
# download, build and install the zstd library
version=1.3.3
set -e
mkdir tmp-zstd
cd tmp-zstd
wget https://github.com/facebook/zstd/archive/v${version}.tar.gz
tar xf v${version}.tar.gz
cd zstd-${version}
make
sudo make install PREFIX=/usr