Skip to content

Commit c02e32f

Browse files
committed
install the env with conda
1 parent 4c1947c commit c02e32f

4 files changed

Lines changed: 21 additions & 20 deletions

File tree

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,13 @@ before_script:
3737

3838

3939
before_install:
40-
- sudo pip install --upgrade pip
41-
- sudo python -m pip install pandas
42-
- export PYMSSQL_BUILD_WITH_BUNDLED_FREETDS=1;sudo python -m pip install pymssql
40+
- wget http://bit.ly/miniconda -O miniconda.sh
41+
- bash miniconda.sh -b -p $HOME/miniconda
42+
- export PATH="$HOME/miniconda/bin:$PATH"
43+
- conda update --yes --all
44+
- conda config --add channels odm2 --force
45+
- conda create --yes -n TEST python=$TRAVIS_PYTHON_VERSION --file requirements.txt --file requirements-dev.txt
46+
- source activate TEST
4347

4448
install:
4549
- sudo pip install -e git+https://github.com/ODM2/geoalchemy.git@v0.7.4#egg=geoalchemy-0.7.4

requirements-dev.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
pytest
2+
pytest-cov
3+
mock
4+
pymysql
5+
pymssql
6+
psycopg2
7+
pymssql
8+
psycopg2
9+
flake8
10+
# FIXME: I am not sure these are needed.
11+
# pysqlite
12+
# sqlite
13+
# pyspatialite
14+
# mysql-python

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
pyodbc
2-
six
32
sqlalchemy
43
pandas
5-
#psycopg2 # Commented out because I could not pip install it.

requirements_tests.txt

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)