forked from freedomofpress/securedrop
/
.travis.yml
22 lines (22 loc) · 1.05 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
language: python
python:
- "2.7"
install:
- pip install --upgrade distribute
- pip install -r securedrop/source-requirements.txt
- pip install -r securedrop/document-requirements.txt
- pip install -r securedrop/test-requirements.txt
before_script:
- sudo apt-get install gnupg2 secure-delete python-dev haveged
- cp securedrop/config/base.py.example securedrop/config/base.py
- cp securedrop/config/test.py.example securedrop/config/test.py
- secret_key=$(head -c 32 /dev/urandom | base64)
- scrypt_id_pepper=$(head -c 32 /dev/urandom | base64)
- scrypt_gpg_pepper=$(head -c 32 /dev/urandom | base64)
- sed -i "s@ SECRET_KEY.*@ SECRET_KEY='$secret_key'@" securedrop/config/base.py
- sed -i "s@^SCRYPT_ID_PEPPER.*@SCRYPT_ID_PEPPER='$scrypt_id_pepper'@" securedrop/config/base.py
- sed -i "s@^SCRYPT_GPG_PEPPER.*@SCRYPT_GPG_PEPPER='$scrypt_gpg_pepper'@" securedrop/config/base.py
- mkdir -p .securedrop/{store,keys,tmp}
- gpg2 --homedir .securedrop/keys --import securedrop/test_journalist_key.*
script:
- cd securedrop && ./test.sh