btrfs-progs: ci: replace inline shell commands with scripts
authorDavid Sterba <dsterba@suse.com>
Thu, 8 Feb 2018 00:49:11 +0000 (01:49 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 13 Feb 2018 14:41:32 +0000 (15:41 +0100)
Signed-off-by: David Sterba <dsterba@suse.com>
.travis.yml
travis/build-dep-reiserfs [new file with mode: 0755]
travis/build-dep-zstd [new file with mode: 0755]

index e37bbc5..6581fbd 100644 (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:
diff --git a/travis/build-dep-reiserfs b/travis/build-dep-reiserfs
new file mode 100755 (executable)
index 0000000..b32b805
--- /dev/null
@@ -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
diff --git a/travis/build-dep-zstd b/travis/build-dep-zstd
new file mode 100755 (executable)
index 0000000..22369dd
--- /dev/null
@@ -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