2018-05-07 23:19:28 +08:00
|
|
|
group: travis_latest
|
|
|
|
language: python
|
|
|
|
cache: pip
|
|
|
|
python:
|
2019-10-27 18:13:26 +08:00
|
|
|
- 3.7
|
2018-05-07 23:19:28 +08:00
|
|
|
install:
|
2019-10-27 18:13:26 +08:00
|
|
|
- pip install -r monkey/monkey_island/requirements.txt
|
|
|
|
- pip install flake8 pytest dlint
|
2019-10-27 19:50:13 +08:00
|
|
|
- pip install -r monkey/infection_monkey/requirements_linux.txt
|
2018-05-07 23:19:28 +08:00
|
|
|
before_script:
|
2019-10-27 18:13:26 +08:00
|
|
|
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
|
|
|
|
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
2018-05-07 23:19:28 +08:00
|
|
|
script:
|
2019-10-27 19:48:09 +08:00
|
|
|
- cd monkey # This is our source dir
|
|
|
|
- python -m pytest --capture=sys # Have to do this to add monkey to sys.path.
|
2018-05-07 23:19:28 +08:00
|
|
|
notifications:
|
2019-10-27 18:13:26 +08:00
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
|
|
|
slack:
|
2019-10-27 18:29:52 +08:00
|
|
|
rooms:
|
2019-10-27 19:48:09 +08:00
|
|
|
- secure: wFddByqGGfwpjuisZhXQGAI7Y/7yZ+ON58R19D2ff+p1lT26BIdE+gSWQFWTbSNcyjVhAMCkbKgRblL2o0WcuiCyYjlcIoT/fEMuypxNTnlC1FtHlmEO/1JAyDVskzRWvu7q98szcDP+yKjUZSjUrLMnzUYtdB7hhAp8iRvEUTgtKQi27kmgBX9lLqAf93WO1Ocp2+fmDkNmegx2bBa9PQS4FYOtqN7DYZ0cHM7wLffyHZmSXZkwCcq+u7mSONrfQZprCvzQu9kntx/zEnjTuNHUZ8L0SNu035Yg2MtxnKDY1GPSox5ax5rZJID4aN+f7vDkIgIskMwVcjFoMS4bvp8xH1liWleR/VdOYhTP1bx5GcLvkUFC/xAwW730AZnU9Ihn3iSLK8iiowf7UMOYLB371KDlZWj2gwRvccRb7VwismLzcYt/So/5/xDa4IgDNNUu/fb9J+TPc+3jKPt3E6KSHseBcyk2ov7iC14pUz/AWEcWga2s5cRiWqBibUuiJUXZf0zExyEnj9dic5jF/UW8EVpDygy5TaAVq9VD30zslzPcIDbl1slEh2Nd6LXQWCiz9UMDN85OHkuXSgNyuSpna6W0+/qNv3SQLrcwTKTNj/ZSLTj5lZIyQ7l11xW36H+uyx4D8rYOpHw8HxrGXnh5hyWhOa4GCGzgSgFZlU8=
|
|
|
|
on_success: always
|
2019-10-27 18:29:52 +08:00
|
|
|
on_failure: always
|