forked from Netflix/security_monkey
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
37 lines (28 loc) · 822 Bytes
/
.travis.yml
File metadata and controls
37 lines (28 loc) · 822 Bytes
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
30
31
32
33
34
35
36
37
sudo: false
language: python
addons:
postgresql: "9.4"
matrix:
include:
- python: "2.7"
cache:
directories:
- .pip_download_cache
env:
global:
- PIP_DOWNLOAD_CACHE=".pip_download_cache"
- SECURITY_MONKEY_SETTINGS=`pwd`/env-config/config-local.py
install:
before_script:
- psql -c "CREATE DATABASE securitymonkeydb;" -U postgres
- psql -c "CREATE ROLE securitymonkeyuser LOGIN PASSWORD 'securitymonkeypass';" -U postgres
- psql -c "CREATE SCHEMA securitymonkeydb GRANT Usage, Create ON SCHEMA securitymonkeydb TO securitymonkeyuser;" -U postgres
- psql -c "set timezone TO 'GMT';" -U postgres
- python setup.py develop
- python manage.py db upgrade
script:
- sh env_tests/test_dart.sh
- py.test security_monkey/tests || exit 1
notifications:
email:
mgrima@netflix.com