Files
cuckoo/appveyor.yml

57 lines
1.7 KiB
YAML

environment:
matrix:
- PYTHON: "C:/Python27"
- PYTHON: "C:/Python27-x64"
global:
MYSQL_PWD: Password12!
POSTGRES_PORT: tcp://localhost:5432
PGUSER: postgres
PGPASSWORD: Password12!
services:
- mongodb
- mysql
- postgresql
install:
- "set PATH=%PYTHON%;%PYTHON%/Scripts;%PATH%"
# Fetch monitor & stuff which is required for setup & CWD migration tests.
- "python.exe stuff/monitor.py"
# Bump the version of Cuckoo during tests (e.g., for new Signatures).
- "python.exe stuff/patch_version.py setup.py 3.0"
- "python.exe setup.py sdist"
- "pip.exe install -e ."
- "pip.exe install psycopg2 mysqlclient==1.3.9 codecov flask-testing"
- "pip.exe install pytest==4.1.1 pytest-cov pytest-django pytest-pythonpath"
- "pip.exe install flask-sqlalchemy==2.4.0 mock==2.0.0 responses==0.5.1"
build: false
before_test:
- "set PATH=C:/Program Files/MySql/MySQL Server 5.7/bin;%PATH%"
- "set PATH=C:/Program Files/PostgreSQL/9.5/bin;%PATH%"
- "mysql -u root -e \"CREATE USER cuckoo@localhost IDENTIFIED BY 'cuckoo'\""
- "mysql -u root -e \"GRANT ALL PRIVILEGES ON * . * TO cuckoo@localhost\""
- "mysql -u root -e \"FLUSH PRIVILEGES\""
- "mysql -u root -e \"CREATE DATABASE cuckootest\""
- "psql -c \"CREATE USER cuckoo WITH PASSWORD 'cuckoo'\""
- "psql -c \"CREATE DATABASE cuckootest\""
- "mysql -u root -e \"CREATE DATABASE cuckootestimport\""
- "mysql -u root cuckootestimport < tests/files/sql/11my.sql"
- "psql -c \"CREATE DATABASE cuckootestimport\""
- "psql cuckootestimport <tests/files/sql/11pg.sql >NUL"
test_script:
- "cuckoo.exe -d --ignore-vuln"
- "cuckoo.exe community"
- "cuckoo.exe -d --ignore-vuln || dir >NUL"
- "pytest.exe --cov=cuckoo"
after_test:
- "codecov.exe"