Skip to content

Commit

Permalink
Tweak travis CI config to try to make 3.5 on stable work
Browse files Browse the repository at this point in the history
  • Loading branch information
gb119 committed Dec 2, 2019
1 parent 3806c68 commit 3649660
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,23 @@ install:
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda config --append channels phygbu
- conda config --append channels conda-forge
- conda config --set channel_priority strict
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a

# Replace dep1 dep2 ... with your dependencies
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION stoner pandas
- source activate test-environment
# This will ensure we collect all the necessary dependencies so long as master doesn't change them!
- conda install pandas # Test with pandas installed
- conda install --yes stoner
# Force upgraded scikit-image
# - conda install --yes scikit-image
# Hyperspy is now an optional dependency for 3.6 onwards
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.7" ]] || [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]] ; then
conda install hyperspy;
conda install -c conda-forge hyperspy;
fi
# Now we unistall the stable stoner - use force to stop downgrading packages!
- conda remove --yes --force stoner
- pip install coveralls
- pip install .
- pip install --no-deps .

# command to run tests
script: coverage run --source=Stoner setup.py test
Expand Down

0 comments on commit 3649660

Please sign in to comment.