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