From 8304c1e0c931fdd153a7132f1387fbd6f63f103e Mon Sep 17 00:00:00 2001 From: Jeremy Fee <jmfee@usgs.gov> Date: Thu, 2 Jan 2020 11:50:51 -0700 Subject: [PATCH] Switch back to conda, use pip to install flask dependencies --- .travis.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3e84b785..3d572150 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 . -- GitLab