summaryrefslogtreecommitdiffstats
path: root/.travis
diff options
context:
space:
mode:
Diffstat (limited to '.travis')
-rwxr-xr-x.travis/install-flatbuffers.sh14
-rwxr-xr-x.travis/install-gpg.sh20
-rwxr-xr-x.travis/install-kde.sh15
3 files changed, 49 insertions, 0 deletions
diff --git a/.travis/install-flatbuffers.sh b/.travis/install-flatbuffers.sh
new file mode 100755
index 00000000..9a030084
--- /dev/null
+++ b/.travis/install-flatbuffers.sh
@@ -0,0 +1,14 @@
1#!/bin/bash
2set -xeuo pipefail
3wget "https://github.com/google/flatbuffers/archive/v1.8.0.tar.gz" -O /tmp/flatbuffers.tar.gz
4cd /tmp
5tar xvfa /tmp/flatbuffers.tar.gz
6cd flatbuffers-1.8.0
7mkdir build
8cd build
9cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DFLATBUFFERS_BUILD_SHAREDLIB=ON
10ninja
11sudo ninja install
12sudo cp flatc /usr/bin
13cd
14rm -rf /tmp/flatbuffers.tar.gz /tmp/flatbuffers-1.8.0
diff --git a/.travis/install-gpg.sh b/.travis/install-gpg.sh
new file mode 100755
index 00000000..9cd6f3e4
--- /dev/null
+++ b/.travis/install-gpg.sh
@@ -0,0 +1,20 @@
1#!/bin/bash
2set -xeuo pipefail
3
4package=$1
5version=$2
6shift
7shift
8configure_opts=( "$@" )
9
10wget "https://www.gnupg.org/ftp/gcrypt/$package/$package-$version.tar.bz2" -O "/tmp/$package.tar.bz2"
11cd /tmp
12tar xvfa "/tmp/$package.tar.bz2"
13cd "$package-$version"
14# Expand configure_opts only if configure_opts is not undefined
15# (in older versions of Bash, empty array is considered undefined)
16./configure "${configure_opts[@]+"${configure_opts[@]}"}"
17make
18sudo make install
19cd
20rm -rf "/tmp/$package.tar.bz2" "/tmp/$package-$version"
diff --git a/.travis/install-kde.sh b/.travis/install-kde.sh
new file mode 100755
index 00000000..55cc0f83
--- /dev/null
+++ b/.travis/install-kde.sh
@@ -0,0 +1,15 @@
1#!/bin/bash
2set -xeuo pipefail
3IFS=$'\n\t'
4
5package=$1
6version=$2
7
8git clone --branch="$version" --depth=1 --recursive "https://anongit.kde.org/$package" "/tmp/$package"
9cd "/tmp/$package"
10mkdir build
11cd build
12cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=/usr
13ninja && sudo ninja install
14cd
15rm -rf "/tmp/$package"