forked from freedomofpress/securedrop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (29 loc) · 1.28 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
23
24
25
26
27
28
29
language: python
python:
- '2.7'
virtualenv:
system_site_packages: true
before_install:
- sudo apt-get update -qq
- sudo apt-get install --yes rng-tools
- sudo rm -f /dev/random
- sudo mknod -m 0666 /dev/random c 1 9
- echo HRNGDEVICE=/dev/urandom | sudo tee /etc/default/rng-tools
- sudo /etc/init.d/rng-tools restart
install:
- pip install ansible
script:
- echo localhost > inventory
- ansible-playbook -i inventory --syntax-check install_files/ansible-base/securedrop-travis.yml
- ansible-playbook -i inventory --connection=local --sudo --skip-tags=non-development install_files/ansible-base/securedrop-travis.yml
# For some reason, redis-server does not start automatically when installed
# on Travis. I believe Travis' service machinery may be interfering. See
# http://docs.travis-ci.com/user/database-setup/#Redis
- sudo service redis-server start
# travis needs the config.py file ran owned by root in other environments it is the
# securedrop_user default www-data
- sudo chown root:root securedrop/config.py
- sudo sh -c "export DISPLAY=:1; cd securedrop && ./manage.py test"
notifications:
slack:
secure: jmEgJkFg6IVLl78dbLPBUpWkVuHkQ+HtXHNoY4cdgx2Gq5kVDuLtBIuMK5ubbj3zsp99JIJZ9DFQlunCkoLYZ7PAKQ7fhfwLEWNFJiAajMTZF/nNKV2J4i0NyMBHeFQ5eagAe3wrGiY5sblTbnExY4zERcdGoC1S2UImWX0xMRw=