From issue 327 (OP open) because it had special characters.
And docs.travis-ci on the encryption key mentions the need to avoid special characters such as curly braces, brackets, backslashes, and pipe characters.
For example, if you want to assign the line 6 & a (5! 1Ab \ to FOO, you need to do:
travis encrypt "FOO=6\\&a\\(5\\!1Ab\\\\"
travis encrypts the string FOO=6\&a\(5\!1Ab\\ , which bash then uses for evaluation in the build environment.
Equivalently, you can do:
travis encrypt 'FOO=6\&a\(5\!1AB\\'
Vonc
source share