From 773aba98264732d6b6e89c013915548693e524de Mon Sep 17 00:00:00 2001 From: "Pete R. Jemian" Date: Sat, 18 Jul 2020 12:37:34 -0500 Subject: [PATCH] MNT #370 --- .travis.yml | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/.travis.yml b/.travis.yml index e6a14a9e3..464e11015 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,10 +15,6 @@ python: # - "nightly" -# see https://github.com/BCDA-APS/apstools/issues/137#ref-commit-5c7baa2 -# install: -# - pip install -r requirements.txt - install: # see: https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/use-conda-with-travis-ci.html - wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh @@ -27,6 +23,7 @@ install: - hash -r - conda config --set always_yes yes --set changeps1 no - conda update -q conda + # Useful for debugging any issues with conda - conda info -a @@ -35,38 +32,22 @@ install: - sed -i s:python\>=3.6.0:python=${TRAVIS_PYTHON_VERSION}:g environment.yml # - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION dep1 dep2 ... - - conda env create -n ${PY_ENV} -f environment.yml + - conda env create -q -n ${PY_ENV} -f environment.yml - conda activate ${PY_ENV} - pip install -r requirements-dev.txt - python setup.py install + - conda list - python --version - which coveralls - # before_script: - # - wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh - # - chmod +x miniconda.sh - # - bash miniconda.sh -b -p $HOME/miniconda - # - export PATH=$HOME/miniconda/bin:$PATH - # - export PY_ENV=travis-$TRAVIS_PYTHON_VERSION - # - export MY_CONDA_CHANNELS="-c apsu -c conda-forge -c nsls2forge -c defaults -c aps-anl-tag" - # - export MY_CONDA_PACKAGES="aps-dm-api bluesky>=1.6.2 coverage databroker>=1.0.6 docopt epics-base numpy ophyd>=1.5.1 pyepics>=3.4.2 pandas requests xlrd" - # - conda create -y -n $PY_ENV $MY_CONDA_CHANNELS python=$TRAVIS_PYTHON_VERSION $MY_CONDA_PACKAGES - # - source activate $PY_ENV - # - which pip - # - which python - # - which conda - # - pip install -r requirements.txt - # - pip install -r requirements-dev.txt - # - conda list - # - python --version - # - which coveralls # command to run tests script: - which coverage - coverage run tests/ + after_success: - coverage report -m - which coveralls