summaryrefslogtreecommitdiffstats
path: root/.travis/install-kde.sh
diff options
context:
space:
mode:
authorRémi Nicole <nicole@kolabsystems.com>2018-02-27 18:02:52 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-02-27 18:03:04 +0100
commit117654d14339f22b2cf8abab92575aeef0f4e558 (patch)
treef3ab12ad36cb887270e424305e0dc3f91892f008 /.travis/install-kde.sh
parent8a8729a371373d5c841e058ab21f4fdd0169b40a (diff)
downloadkube-117654d14339f22b2cf8abab92575aeef0f4e558.tar.gz
kube-117654d14339f22b2cf8abab92575aeef0f4e558.zip
Add Travis-CI integration
Summary: Some notes: - From what I've seen, the `.travis.yml` file (and by extension the `.travis` dir) needs to be on every branch we want Travis to build continuously + the main (master) branch for detection - Since every branch continuously tested must have the `.travis.yml` file, that allows for feature specific dependency version pinning - The Sink dependency follows the "develop" branch, but Travis will not detect new commits in Sink, so to update, either trigger a build manually on Travis-CI, or make a new commit in Kube - Unit Tests are disabled for now Reviewers: cmollekopf Tags: #kube Differential Revision: https://phabricator.kde.org/D10891
Diffstat (limited to '.travis/install-kde.sh')
-rwxr-xr-x.travis/install-kde.sh15
1 files changed, 15 insertions, 0 deletions
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"