Skip to content

Commit

Permalink
fixes to dependencies and travis file
Browse files Browse the repository at this point in the history
  • Loading branch information
mheikenfeld authored Mar 18, 2020
1 parent 8f29a16 commit 37d7fbe
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
31 changes: 19 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
language: python
#sudo: false
# choose python versions
os:
- linux
# - osx
# - windows


# choose python versions
python:
- "2.7"
- "3.6"
- "3.7"
# - "2.7"

install:

# Install miniconda
# -----------------
- export CONDA_BASE=http://repo.continuum.io/miniconda/Miniconda3;

- PYTHON_TARGET=$TRAVIS_PYTHON_VERSION
- echo $PYTHON_TARGET
- if [[ $PYTHON_TARGET == 3* ]]; then
export CONDA_BASE=http://repo.continuum.io/miniconda/Miniconda3;
fi
- echo $CONDA_BASE
- wget ${CONDA_BASE}-latest-Linux-x86_64.sh -O miniconda.sh;

- bash miniconda.sh -b -p $HOME/miniconda
Expand All @@ -34,23 +36,28 @@ install:

# Customise the testing environment
# ---------------------------------
#install requirements from conda-forge based on conda-requirements.txt:
- conda install -c conda-forge --quiet --file conda_requirements.txt
- conda install -c conda-forge --quiet pytest
- PREFIX=$HOME/miniconda/envs/$ENV_NAME
- pip install --upgrade git+ssh://[email protected]/mheikenfeld/piecharts.git
- pip install --upgrade git+ssh://[email protected]/mheikenfeld/mpdiag.git
#install pytest:
- conda install -c conda-forge --quiet pytest
# install packages directly from github:
- pip install git+https://github.com/mheikenfeld/piecharts.git
- pip install git+https://github.com/mheikenfeld/mpdiag.git

- PREFIX=$HOME/miniconda/envs/$ENV_NAME

# Output debug info
- conda list
- conda info -a

# Install
#- python setup.py --quiet install
- pip install .
# to check if package has been installed

# Output debug info
- conda list

# command to run tests
#script
script:
- pytest

7 changes: 2 additions & 5 deletions conda_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
iris
wrfcube
ramscube
numpy
scipy
tobac
pandas
matplotlib

wrfcube
ramscube

0 comments on commit 37d7fbe

Please sign in to comment.