[tor-commits] [bridgedb/develop] Add '127.0.0.1' to copied bridgedb.conf in .travis.yml.
isis at torproject.org
isis at torproject.org
Wed Aug 13 00:41:26 UTC 2014
commit b15e76b2d9441acf17856b888e27d1b5dd06169e
Author: Isis Lovecruft <isis at torproject.org>
Date: Thu Aug 7 11:02:30 2014 +0000
Add '127.0.0.1' to copied bridgedb.conf in .travis.yml.
This is necessary to run the tests in `lib/bridgedb/test/test_smtp.py`, and
shouldn't be set on production servers. It's done with a sed command in the
`.travis.yml` file to a copied bridgedb.conf so that it doesn't ever end up in
a production config file.
---
.travis.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.travis.yml b/.travis.yml
index a3771b0..5f0aed2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -50,6 +50,9 @@ install:
before_script:
- mkdir run
- cp -R -t run bridgedb.conf captchas gnupghome
+ # Add '127.0.0.1' to EMAIL_DOMAINS in bridgedb.conf. This should ONLY be
+ # done on testing servers, never on production servers.
+ - sed -r -i -e "s/(EMAIL_DOMAINS)(.*)(])/\1\2\, '127.0.0.1']/" run/bridgedb.conf
- leekspin -n 100
- cp -t run networkstatus-bridges cached-extrainfo* bridge-descriptors
- ./scripts/make-ssl-cert
More information about the tor-commits
mailing list