forked from cuckoosandbox/cuckoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
51 lines (41 loc) · 1.5 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
environment:
matrix:
- PYTHON: "C:/Python27"
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"
- "python.exe setup.py sdist"
- "pip.exe install -e ."
- "pip.exe install psycopg2 mysqlclient==1.3.9 codecov flask-testing"
- "pip.exe install pytest pytest-cov pytest-django pytest-pythonpath"
- "pip.exe install flask-sqlalchemy==2.1 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"
- "cuckoo.exe community"
- "pytest.exe --cov=cuckoo"
after_test:
- "codecov.exe"