forked from freedomofpress/securedrop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
20 lines (20 loc) · 1.12 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
language: python
python:
- "2.7"
install:
- pip install --upgrade distribute
- pip install --allow-external twill --allow-unverified twill -r securedrop/source-requirements.txt
- pip install --allow-external twill --allow-unverified twill -r securedrop/document-requirements.txt
before_script:
- sudo apt-get install gnupg2 secure-delete python-dev haveged
- cp securedrop/example_config.py securedrop/config.py
- secret_key=$(python -c 'import os; print os.urandom(32).__repr__().replace("\\","\\\\")')
- scrypt_id_pepper=$(python -c 'import os; print os.urandom(32).__repr__().replace("\\","\\\\")')
- scrypt_gpg_pepper=$(python -c 'import os; print os.urandom(32).__repr__().replace("\\","\\\\")')
- sed -i "s@ SECRET_KEY.*@ SECRET_KEY=$secret_key@" securedrop/config.py
- sed -i "s@^SCRYPT_ID_PEPPER.*@SCRYPT_ID_PEPPER=$scrypt_id_pepper@" securedrop/config.py
- sed -i "s@^SCRYPT_GPG_PEPPER.*@SCRYPT_GPG_PEPPER=$scrypt_gpg_pepper@" securedrop/config.py
- mkdir -p .securedrop/{store,keys,tmp}
- gpg2 --homedir .securedrop/keys --import securedrop/test_journalist_key.*
script:
- cd securedrop && python test.py