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 800
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: | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] |
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
FROM ubuntu:14.04 | ||
MAINTAINER Netflix Open Source Development <[email protected]> | ||
|
||
ENV SECURITY_MONKEY_VERSION=v0.9.0 \ | ||
ENV SECURITY_MONKEY_VERSION=v0.9.1 \ | ||
SECURITY_MONKEY_SETTINGS=/usr/local/src/security_monkey/env-config/config-docker.py | ||
|
||
RUN apt-get update &&\ | ||
|
@@ -25,6 +25,8 @@ RUN apt-get update &&\ | |
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip install setuptools --upgrade | ||
RUN pip install pip --upgrade | ||
RUN pip install "urllib3[secure]" --upgrade | ||
|
||
RUN cd /usr/local/src &&\ | ||
# git clone --branch $SECURITY_MONKEY_VERSION https://github.com/Netflix/security_monkey.git | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
FROM nginx:1.11.4 | ||
MAINTAINER Netflix Open Source Development <[email protected]> | ||
|
||
ENV SECURITY_MONKEY_VERSION=v0.9.0 | ||
ENV SECURITY_MONKEY_VERSION=v0.9.1 | ||
RUN apt-get update &&\ | ||
apt-get install -y curl git sudo apt-transport-https &&\ | ||
curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - &&\ | ||
|
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.