summaryrefslogtreecommitdiff
path: root/.github/setup_ci.sh
diff options
context:
space:
mode:
authorStefan Schindler <dns2utf8@estada.ch>2020-08-05 19:00:52 +0200
committerStefan Schindler <dns2utf8@estada.ch>2020-08-06 00:01:41 +0200
commit9499f2bb01dc1032ae155999b2d7764b9491341f (patch)
treed539f2e2609519a233110ca8995b9fbde15d336f /.github/setup_ci.sh
parentea1f649046546a860f68b97ddc3015b7e44346ca (diff)
Add CI with prepare script
* Only use heimdal kerberos implementation * Fetch yubico/libfido2 (see: https://github.com/Yubico/libfido2) * Add one target for * all features * each feature alone * no features
Diffstat (limited to '.github/setup_ci.sh')
-rwxr-xr-x.github/setup_ci.sh51
1 files changed, 51 insertions, 0 deletions
diff --git a/.github/setup_ci.sh b/.github/setup_ci.sh
new file mode 100755
index 000000000..237721ade
--- /dev/null
+++ b/.github/setup_ci.sh
@@ -0,0 +1,51 @@
1#!/usr/bin/env bash
2
3TARGETS=$@
4
5PACKAGES=""
6INSTALL_FIDO_PPA="no"
7
8#echo "Setting up for '$TARGETS'"
9
10set -ex
11
12lsb_release -a
13
14for TARGET in $TARGETS; do
15 case $TARGET in
16 "")
17 # nothing to do
18 ;;
19 "--with-kerberos5")
20 PACKAGES="$PACKAGES heimdal-dev"
21 #PACKAGES="$PACKAGES libkrb5-dev"
22 ;;
23 "--with-libedit")
24 PACKAGES="$PACKAGES libedit-dev"
25 ;;
26 "--with-pam")
27 PACKAGES="$PACKAGES libpam0g-dev"
28 ;;
29 "--with-security-key-builtin")
30 INSTALL_FIDO_PPA="yes"
31 PACKAGES="$PACKAGES libfido2-dev libu2f-host-dev"
32 ;;
33 "--with-selinux")
34 PACKAGES="$PACKAGES libselinux1-dev selinux-policy-dev"
35 ;;
36 *) echo "Invalid option"
37 exit 1
38 ;;
39 esac
40done
41
42if [ "yes" == "$INSTALL_FIDO_PPA" ]; then
43 sudo apt update -qq
44 sudo apt install software-properties-common
45 sudo apt-add-repository ppa:yubico/stable
46fi
47
48if [ "x" != "x$PACKAGES" ]; then
49 sudo apt update -qq
50 sudo apt install -qy $PACKAGES
51fi