summaryrefslogtreecommitdiffstats
path: root/ci/local.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/local.sh')
-rwxr-xr-xci/local.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/ci/local.sh b/ci/local.sh
new file mode 100755
index 0000000..db687ff
--- /dev/null
+++ b/ci/local.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+set -eux
+
+: "${GPG_VERSION:=stable}"
+: "${BUILD_MODE:=normal}"
+
+rsync -a /usr/local/rnp /tmp
+sudo -iu travis bash -x <<EOF
+cd /tmp/rnp
+env ${CXX:+CXX=$CXX} \
+ ${CC:+CC=$CC} \
+ GPG_VERSION=$GPG_VERSION \
+ BUILD_MODE=$BUILD_MODE \
+ ${RNP_TESTS:+RNP_TESTS=$RNP_TESTS} \
+ ci/run.sh
+EOF