only require travis encryption for maintainers

This commit is contained in:
Lachlan Kermode
2018-12-18 15:00:05 +00:00
parent 063586735c
commit 651f768c5b
2 changed files with 5 additions and 5 deletions

BIN
.env.enc

Binary file not shown.

View File

@@ -1,11 +1,11 @@
#!/bin/bash
echo "Encrypting .env file for Travis..."
# confirm that user has access to forensic architecture datasheet
# if [ ! -z "$(travis repos | grep "forensic-architecture/datasheet-server")" ]
# echo "No travis encrypt possible, skipping this step."
# exit 0
# fi
# confirm that the user has the core repo as origin, and is therefore a maintainer
if [ -z `git config --get remote.origin.url | grep "forensic-architecture/datasheet-server"` ]; then
echo "Travis encryption not required for satellite contributors, continuing.."
exit 0
fi
# confirm travis is installed
if [ ! hash travis 2>/dev/null ]; then