Add test path to env vars
This commit is contained in:
17
.travis.yml
17
.travis.yml
@ -3,7 +3,8 @@ language: python
|
|||||||
cache: pip
|
cache: pip
|
||||||
python:
|
python:
|
||||||
- 2.7
|
- 2.7
|
||||||
|
env:
|
||||||
|
- TEST_PATH=tests/data
|
||||||
# - 3.6
|
# - 3.6
|
||||||
#matrix:
|
#matrix:
|
||||||
# allow_failures:
|
# allow_failures:
|
||||||
@ -21,21 +22,21 @@ script:
|
|||||||
- python setup.py install
|
- python setup.py install
|
||||||
# Test successful scan download and parsing
|
# Test successful scan download and parsing
|
||||||
- rm -rf /tmp/VulnWhisperer
|
- rm -rf /tmp/VulnWhisperer
|
||||||
- vuln_whisperer -c configs/test.ini --mock --mock_dir tests/data
|
- vuln_whisperer -c configs/test.ini --mock --mock_dir ${TEST_PATH}
|
||||||
# Test one failed scan
|
# Test one failed scan
|
||||||
- rm -rf /tmp/VulnWhisperer
|
- rm -rf /tmp/VulnWhisperer
|
||||||
- rm -f test/nessus/GET_scans_exports_164_download
|
- rm -f ${TEST_PATH}/nessus/GET_scans_exports_164_download
|
||||||
- vuln_whisperer -c configs/test.ini --mock --mock_dir tests/data; [[ $? -eq 1 ]]
|
- vuln_whisperer -c configs/test.ini --mock --mock_dir ${TEST_PATH}; [[ $? -eq 1 ]]
|
||||||
# Test two failed scans
|
# Test two failed scans
|
||||||
- rm -rf /tmp/VulnWhisperer
|
- rm -rf /tmp/VulnWhisperer
|
||||||
- rm -f test/qualys_vuln/scan_1553941061.87241
|
- rm -f ${TEST_PATH}/qualys_vuln/scan_1553941061.87241
|
||||||
- vuln_whisperer -c configs/test.ini --mock --mock_dir tests/data; [[ $? -eq 2 ]]
|
- vuln_whisperer -c configs/test.ini --mock --mock_dir ${TEST_PATH}; [[ $? -eq 2 ]]
|
||||||
# Test only nessus
|
# Test only nessus
|
||||||
- rm -rf /tmp/VulnWhisperer
|
- rm -rf /tmp/VulnWhisperer
|
||||||
- vuln_whisperer -c configs/test.ini -s nessus --mock --mock_dir tests/data; [[ $? -eq 1 ]]
|
- vuln_whisperer -c configs/test.ini -s nessus --mock --mock_dir ${TEST_PATH}; [[ $? -eq 1 ]]
|
||||||
# Test only qualy_vuln
|
# Test only qualy_vuln
|
||||||
- rm -rf /tmp/VulnWhisperer
|
- rm -rf /tmp/VulnWhisperer
|
||||||
- vuln_whisperer -c configs/test.ini -s qualys_vuln --mock --mock_dir tests/data; [[ $? -eq 1 ]]
|
- vuln_whisperer -c configs/test.ini -s qualys_vuln --mock --mock_dir ${TEST_PATH}; [[ $? -eq 1 ]]
|
||||||
notifications:
|
notifications:
|
||||||
on_success: change
|
on_success: change
|
||||||
on_failure: change # `always` will be the setting once code changes slow down
|
on_failure: change # `always` will be the setting once code changes slow down
|
||||||
|
Reference in New Issue
Block a user