This repository has been archived by the owner on Sep 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 794
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #686 from Netflix/develop
0.9.1 bug fix release
- Loading branch information
Showing
30 changed files
with
594 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,90 @@ | ||
sudo: required | ||
|
||
language: python | ||
|
||
addons: | ||
postgresql: "9.4" | ||
# Travis YAML file for Security Monkey. | ||
|
||
# Only way to get multiple builds to work without having the "default" job working was to | ||
# duplicate everything :/ See: https://github.com/travis-ci/travis-ci/issues/4681 | ||
matrix: | ||
include: | ||
- python: "2.7" | ||
##### UNIT TEST JOB ##### | ||
- dist: trusty | ||
sudo: required | ||
language: python | ||
python: "2.7" | ||
|
||
env: | ||
- UNIT_TEST_JOB=true | ||
- PIP_DOWNLOAD_CACHE=".pip_download_cache" | ||
- SECURITY_MONKEY_SETTINGS=`pwd`/env-config/config.py | ||
|
||
addons: | ||
postgresql: "9.4" | ||
|
||
before_script: | ||
- psql -c "CREATE DATABASE secmonkey;" -U postgres | ||
- psql -c "CREATE ROLE securitymonkeyuser LOGIN PASSWORD 'securitymonkeypassword';" -U postgres | ||
- psql -c "CREATE SCHEMA secmonkey GRANT Usage, Create ON SCHEMA secmonkey TO securitymonkeyuser;" -U postgres | ||
- psql -c "set timezone TO 'GMT';" -U postgres | ||
- python setup.py develop | ||
- pip install .[tests] | ||
- pip install coveralls | ||
- monkey db upgrade | ||
- monkey amazon_accounts | ||
|
||
before_install: | ||
- sudo mkdir -p /var/log/security_monkey/ | ||
- sudo touch /var/log/security_monkey/securitymonkey.log | ||
- sudo chown travis /var/log/security_monkey/securitymonkey.log | ||
|
||
install: | ||
- sed -i '/WTF_CSRF_ENABLED = True/c\WTF_CSRF_ENABLED = False' `pwd`/env-config/config.py | ||
- pip install bandit | ||
|
||
script: | ||
- coverage run -a -m py.test security_monkey/tests/auditors || exit 1 | ||
- coverage run -a -m py.test security_monkey/tests/watchers || exit 1 | ||
- coverage run -a -m py.test security_monkey/tests/core || exit 1 | ||
- coverage run -a -m py.test security_monkey/tests/views || exit 1 | ||
- coverage run -a -m py.test security_monkey/tests/interface || exit 1 | ||
- coverage run -a -m py.test security_monkey/tests/utilities || exit 1 | ||
- bandit -r -ll -ii -x security_monkey/tests . | ||
|
||
after_success: | ||
- coveralls | ||
- coverage report | ||
##################################################### | ||
|
||
##### BUILD DOCKER CONTAINER JOB ##### | ||
- dist: trusty | ||
sudo: required | ||
language: python | ||
python: "2.7" | ||
|
||
env: | ||
- BUILD_DOCKER=True | ||
- DOCKER_COMPOSE_VERSION=1.11.2 | ||
- PIP_DOWNLOAD_CACHE=".pip_download_cache" | ||
- SECURITY_MONKEY_SETTINGS=`pwd`/env-config/config.py | ||
|
||
services: | ||
- docker | ||
|
||
script: | ||
- docker-compose --version | ||
- docker-compose build | ||
##################################################### | ||
|
||
##### TEST DART JOB ##### | ||
- dist: trusty | ||
env: DART_TEST=True | ||
|
||
script: sh env_tests/test_dart.sh | ||
##################################################### | ||
|
||
cache: | ||
directories: | ||
- .pip_download_cache | ||
|
||
env: | ||
global: | ||
- PIP_DOWNLOAD_CACHE=".pip_download_cache" | ||
- SECURITY_MONKEY_SETTINGS=`pwd`/env-config/config.py | ||
|
||
install: | ||
- sed -i '/WTF_CSRF_ENABLED = True/c\WTF_CSRF_ENABLED = False' `pwd`/env-config/config.py | ||
|
||
before_install: | ||
# - sudo apt-get -qq update | ||
# - sudo apt-get install -y libxml2-dev libxmlsec1-dev | ||
- sudo mkdir -p /var/log/security_monkey/ | ||
- sudo touch /var/log/security_monkey/securitymonkey.log | ||
- sudo chown travis /var/log/security_monkey/securitymonkey.log | ||
|
||
before_script: | ||
- psql -c "CREATE DATABASE secmonkey;" -U postgres | ||
- psql -c "CREATE ROLE securitymonkeyuser LOGIN PASSWORD 'securitymonkeypassword';" -U postgres | ||
- psql -c "CREATE SCHEMA secmonkey GRANT Usage, Create ON SCHEMA secmonkey TO securitymonkeyuser;" -U postgres | ||
- psql -c "set timezone TO 'GMT';" -U postgres | ||
- python setup.py develop | ||
- pip install .[tests] | ||
- pip install coveralls | ||
- monkey db upgrade | ||
|
||
script: | ||
- sh env_tests/test_dart.sh | ||
- coverage run -a -m py.test security_monkey/tests/auditors || exit 1 | ||
- coverage run -a -m py.test security_monkey/tests/watchers || exit 1 | ||
- coverage run -a -m py.test security_monkey/tests/core || exit 1 | ||
- coverage run -a -m py.test security_monkey/tests/views || exit 1 | ||
- coverage run -a -m py.test security_monkey/tests/interface || exit 1 | ||
- coverage run -a -m py.test security_monkey/tests/utilities || exit 1 | ||
|
||
after_success: | ||
- coveralls | ||
- coverage report | ||
|
||
notifications: | ||
email: | ||
- mgrima@netflix.com | ||
- pkelley@netflix.com | ||
- tmcpeak@netflix.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.