This repository has been archived by the owner on Apr 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
appveyor.yml
56 lines (45 loc) · 1.73 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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"