Skip to content

Commit

Permalink
Merge pull request #44 from pysat/rc3.0.0_integration_test
Browse files Browse the repository at this point in the history
Updated .travis.yml for pysat 3.0.0 release
  • Loading branch information
aburrell committed May 11, 2021
2 parents a35dc4b + f4bc2ca commit d0bb732
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 29 deletions.
35 changes: 7 additions & 28 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,15 @@ addons:
- gfortran
- libncurses5-dev

install:
- sudo apt-get update
# We do this conditionally because it saves us some downloading if the
# version is the same.
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes True --set changeps1 False
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# Create conda test environment
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
- conda activate test-environment
- while read requirement; do conda install --yes $requirement; done < conda_requirements.txt
# Conda does not provide (the correct versions of) all packages
- pip install -r pip_requirements.txt
# Custom pysat install, no longer needed after 3.0 release
- cd ..
- git clone --single-branch --branch develop-3 https://github.com/pysat/pysat.git
- cd pysat
# Install the pysat requirements
- while read requirement; do conda install --yes $requirement; done < requirements.txt
- python setup.py install
- export PYTHONPATH=$PYTHONPATH:$(pwd)
before_install:
- python -m pip install --upgrade pip
# Get the program and testing requirements
- pip install -r test_requirements.txt
- pip install -r requirements.txt
# set up data directory
- mkdir /home/travis/build/pysatData
- cd ../pysatMadrigal
# install pysatMadrigal
- python -c "import pysat; pysat.params['data_dirs'] = '/home/travis/build/pysatData'"
install:
- python setup.py install

after_success:
Expand Down
1 change: 1 addition & 0 deletions conda_requirements.txt → requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
h5py
madrigalWeb
numpy
pandas
pysat>=3.0
Expand Down
1 change: 0 additions & 1 deletion pip_requirements.txt → test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
coveralls
m2r2
madrigalWeb
numpydoc
pytest-cov
pytest-ordering
Expand Down

0 comments on commit d0bb732

Please sign in to comment.