From 5b426a97c8fc470d9e2b8ba2cabe22ed89c05034 Mon Sep 17 00:00:00 2001 From: Jeremy Fee <jmfee@usgs.gov> Date: Wed, 21 Oct 2020 13:37:32 -0600 Subject: [PATCH] Update .travis.yml to use ci_check_code script --- .travis.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index 75742eff..b75025fa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,26 +2,18 @@ language: python python: - 3.6 - 3.7 -before_install: + - 3.8 +install: ## 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 + - wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh - 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: - - conda config --add channels conda-forge - - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION obspy pycurl black pytest pytest-cov webtest pydantic openpyxl - - source activate test-environment - - pip install authlib flask flask-login flask-migrate flask-session flask-sqlalchemy psycopg2-binary script: - - black --check . - - pytest + - export PYTHON_VERSION=$TRAVIS_PYTHON_VERSION + - scripts/ci_check_code.sh after_success: - bash <(curl -s https://codecov.io/bash) -- GitLab