Fix travis build
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
# this file is *not* meant to cover or endorse the use of travis, but rather to
|
||||
# help confirm pull requests to this project.
|
||||
|
||||
language: python
|
||||
|
||||
python: 3.5
|
||||
|
||||
env:
|
||||
- TOXENV=py26
|
||||
- TOXENV=py27
|
||||
- TOXENV=py33
|
||||
- TOXENV=py34
|
||||
- TOXENV=py35
|
||||
|
||||
install: pip install tox
|
||||
|
||||
script: tox
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- script: bin/check_for_differences
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
include LICENSE.txt
|
||||
include CONTRIBUTING.md
|
||||
recursive-include source_data *.conf
|
||||
recursive-include bin *
|
||||
|
||||
@@ -1,16 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Clone the source repository
|
||||
cd /tmp
|
||||
git clone git@github.com:martenson/disposable-email-domains.git
|
||||
cd -
|
||||
cd /tmp && \
|
||||
git clone https://github.com/martenson/disposable-email-domains.git && \
|
||||
cd - && \
|
||||
|
||||
# Create what would be generated by source_data
|
||||
python bin/parse_source_data > /tmp/disposable_email_domains__init__.py && \
|
||||
|
||||
# Compare the source files with what's in source_data
|
||||
diff /tmp/disposable-email-domains/disposable_email_blacklist.conf source_data/disposable_email_blacklist.conf
|
||||
diff /tmp/disposable-email-domains/whitelist.conf source_data/whitelist.conf
|
||||
rm -rf /tmp/disposable-email-domains
|
||||
|
||||
# Compare the __init__.py to what would be generated by source_data
|
||||
python bin/parse_source_data > /tmp/disposable_email_domains__init__.py
|
||||
diff /tmp/disposable-email-domains/disposable_email_blacklist.conf source_data/disposable_email_blacklist.conf && \
|
||||
diff /tmp/disposable-email-domains/whitelist.conf source_data/whitelist.conf && \
|
||||
diff /tmp/disposable_email_domains__init__.py disposable_email_domains/__init__.py
|
||||
|
||||
EXIT=$?
|
||||
|
||||
rm -rf /tmp/disposable-email-domains
|
||||
rm /tmp/disposable_email_domains__init__.py
|
||||
|
||||
exit $EXIT
|
||||
|
||||
@@ -14,4 +14,4 @@ def parse_list(listname, filename):
|
||||
])
|
||||
)
|
||||
|
||||
print("\n\n".join([parse_list(*args) for args in lists.items()]))
|
||||
print("\n\n".join([parse_list(*args) for args in sorted(lists.items())]))
|
||||
|
||||
Reference in New Issue
Block a user