-
Notifications
You must be signed in to change notification settings - Fork 137
/
Copy pathappveyor.yml
57 lines (46 loc) · 1.74 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
57
skip_tags: true
clone_depth: 50
os: Visual Studio 2015
environment:
matrix:
# - PY_MAJOR_VER: 2
# PYTHON_ARCH: "x86_64"
- PY_MAJOR_VER: 3
PYTHON_ARCH: "x86_64"
python: 3.5
platform:
- x64
services:
# - mssql2014 # No tests for mssql written yet
# - mysql # mysql tests fail. Don't understand how to fix at the moment.
- postgresql93
- mongodb
build_script:
- ps: Start-FileDownload "https://repo.continuum.io/miniconda/Miniconda$env:PY_MAJOR_VER-latest-Windows-$env:PYTHON_ARCH.exe" C:\Miniconda.exe; echo "Finished downloading miniconda"
- cmd: C:\Miniconda.exe /S /D=C:\Py
- SET PATH=C:\Py;C:\Py\Scripts;C:\Py\Library\bin;%PATH%
- conda config --set always_yes yes
- conda update conda --quiet
- conda update setuptools pip
# sqlite
- ps: Start-FileDownload "https://sqlite.org/2016/sqlite-tools-win32-x86-3150200.zip" C:\sqlite.zip; echo "Finished downloading sqlite3"
- 7z e C:\sqlite.zip
# mongodb
- SET PATH=C:\mongodb\bin;%PATH%
- ps: 'mongo admin --eval "db.runCommand({setParameter: 1, textSearchEnabled: true});"'
# MySql
# Can't seem to get mysql tests to run properly either.
# - SET PATH=C:\Program Files\MySql\MySQL Server 5.7\bin\;%PATH%
# - mysql -u root -p"Password12!" -e "CREATE DATABASE IF NOT EXISTS test;"
# - mysql -u root -p"Password12!" -e "CREATE USER 'appveyor'@'localhost';"
# - mysql -u root -p"Password12!" -e "GRANT ALL PRIVILEGES ON *.* TO 'appveyor'@'localhost';"
# Postgresql
- SET PGUSER=postgres
- SET PGPASSWORD=Password12!
- SET PATH=C:\Program Files\PostgreSQL\9.3\bin\;%PATH%
- createdb test
# install python stuff
- sh etc\ci-install.sh
test_script:
- activate odo
- py.test -v --doctest-modules --doctest-ignore-import-errors -rs odo