diff --git a/.env.enc b/.env.enc index 32b3cc5..cadfe70 100644 Binary files a/.env.enc and b/.env.enc differ diff --git a/.gitignore b/.gitignore index 9a4e3d5..cc6e5ca 100755 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,5 @@ *service-account-key\.json src/config.js /yarn-error.log -*.pem \ No newline at end of file +*.pem +.travis.yml.old \ No newline at end of file diff --git a/scripts/encrypt.sh b/scripts/encrypt.sh index 932f43f..62757ae 100644 --- a/scripts/encrypt.sh +++ b/scripts/encrypt.sh @@ -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