-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
76 lines (65 loc) · 1.69 KB
/
.travis.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
70
71
72
73
74
75
language: python
sudo: required
# if the https://travis-ci.org/ODM2/ODMToolsPython/requests ever says: missing config
# validate at: http://lint.travis-ci.org/
python:
# - "2.6"
- "2.7"
# - "3.2"
# - "3.3"
# - "3.4"
# - "3.5"
# - "3.5-dev" # 3.5 development branch
# - "nightly" # currently points to 3.6-dev
# command to install dependencies
cache:
directories:
- $HOME/.cache/pip/wheels
- $HOME/virtualenv/python2.7.9
services:
- mysql
- postgresql
addons:
apt:
packages:
- cmake
- unixodbc
- unixodbc-dev
- odbcinst1debian2
- odbcinst
- freetds-dev
- freetds-bin
- tdsodbc
- libc6
- e2fsprogs
- mysql-client
- libproj-dev
- python-wxgtk2.8
- python-wxtools
- wx2.8-doc
- wx2.8-examples
- wx2.8-headers
- wx2.8-i18n
before_install:
# python -m pip makes the install go into the virtualenv
- python -m pip install pandas
- export PYMSSQL_BUILD_WITH_BUNDLED_FREETDS=1;python -m pip install pymssql
# - python -m pip install mysql-python
install: # now just our code
- pip install geoalchemy2
- pip install -r requirements_tests.txt --allow-external pyodbc --allow-unverified pyodbc
- pip list
# don't forget to open up the azure mssql server to these addreses
# https://docs.travis-ci.com/user/ip-addresses/
# mariadb: '10.1'
before_script:
- chmod +x ./ci-helpers/travis/mysql_setup.sh
# - chmod +x ./ci-helpers/travis/postgres_setup.sh
- chmod +x ./ci-helpers/travis/freetds.sh
- ./ci-helpers/travis/mysql_setup.sh
# - ./ci-helpers/travis/postgres_setup.sh
- ./ci-helpers/travis/freetds.sh
# command to run tests
script:
# - pythonw -m pytest
- py.test