adding regex to get rid of encryption information when sharing between multiple travis configs

This commit is contained in:
Joshua Lieberman
2018-12-18 14:21:15 +00:00
committed by Lachlan Kermode
parent 9ffc7c88d0
commit 063586735c
3 changed files with 8 additions and 1 deletions

BIN
.env.enc

Binary file not shown.

3
.gitignore vendored
View File

@@ -9,4 +9,5 @@
*service-account-key\.json
src/config.js
/yarn-error.log
*.pem
*.pem
.travis.yml.old

View File

@@ -26,6 +26,12 @@ if [ ! -f .env ]; then
exit 3
fi
# regex to match and delete 'before_install' and everything after it
# necessary to delete these lines to get Travis to build for multiple accounts
echo "creating new .travis.yml configuration"
sed -i.old '/^before_install.*/,$ d' .travis.yml
echo "old config file saved as .travis.yml.old"
travis encrypt-file .env --add --force --org
git add .env.enc
git add .travis.yml