diff --git a/.travis.yml b/.travis.yml index 3e84b7857b1d7f318272eeecdff74db771f116cd..3d572150a9969ed0b5ecd5f78fb70245a3c9174b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,12 +3,24 @@ python: - 2.7 - 3.5 - 3.6 - - 3.7 before_install: - # used to build pycurl - - sudo apt-get -y install libgnutls-dev + ## courtesy of http://conda.pydata.org/docs/travis.html + - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then + wget https://repo.anaconda.com/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh; + else + wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; + fi + - bash miniconda.sh -b -p $HOME/miniconda + - export PATH="$HOME/miniconda/bin:$PATH" + - hash -r + - conda config --set always_yes yes --set changeps1 no + - conda update --yes conda + - conda info -a install: - - pipenv install --dev --skip-lock + - conda config --add channels conda-forge + - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION obspy pycurl nose flake8 coverage webtest + - source activate test-environment + - pip install authlib flask flask-login flask-migrate flask-session flask-sqlalchemy psycopg2-binary script: - flake8 --config=.flake8 bin/ geomagio/ test/ - nosetests -v .