forked from blaze/odo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
69 lines (55 loc) · 2.43 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
58
59
60
61
62
63
64
65
66
67
68
69
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"
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 # mongodb tests fail. Don't understand how to fix at the moment.
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 create -n odo python=3.5 numpy cryptography pytables h5py pandas dask boto3 bcolz psycopg2 botocore s3transfer pymysql pytest pytz requests s3fs sas7bdat SQLAlchemy pytables odo
- activate odo
- 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
# mongodb tests run, but they fail. Appveyor has more recent version than
# travis. For now, don't run tests, and don't set up 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 the frozen ci dependencies
# This takes too long and there's a bunch of dependencies to solve (e.g., h5py)
# - pip install -e .[ci]
# datashape
- pip install git+git://github.com/blaze/datashape.git
# redshift sqlalchemy dialect
- pip install --upgrade git+git://github.com/graingert/redshift_sqlalchemy
- python setup.py develop
test_script:
- conda list
- py.test -v --doctest-modules --doctest-ignore-import-errors -rs odo