Skip to content

Commit

Permalink
Simplify Travis file
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiopasra committed Feb 3, 2019
1 parent c376d1f commit 64a0ac4
Showing 1 changed file with 9 additions and 31 deletions.
40 changes: 9 additions & 31 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,47 +4,25 @@ sudo: false
matrix:
include:
- python: "2.7"
env: DEPS="numpy scipy astropy=2.0 enum34"
env: DEPS="numpy scipy astropy==2.0 enum34"
- python: "3.5"
env: DEPS="numpy scipy astropy=3.0" COVERAGE=true
env: DEPS="numpy scipy astropy==3.0" COVERAGE=true
- python: "3.6"
env: DEPS="numpy scipy astropy=3.0"
env: DEPS="numpy scipy astropy==3.0"

cache:
apt: true
pip: true
directories:
- $HOME/.cache/pip
- $HOME/.local

before_install:
- >
if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ];
then wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh -O miniconda.sh;
fi
- chmod +x miniconda.sh
- ./miniconda.sh -b -p /home/travis/mc
- export PATH=/home/travis/mc/bin:$PATH

# The preinstalled numpy 1.15 with python 3.5 breaks something
# probably a wheel
install:
# See:
# https://groups.google.com/a/continuum.io/forum/#!topic/conda/RSFENqovnro
# - conda update --yes --no-deps conda
# OK, this used to *fix* the build, but now it *breaks* the build.
# If you're reading this, good luck out there. I'm not sure what to tell you.
- conda update --yes conda
- >
conda create -n testenv --yes python=$TRAVIS_PYTHON_VERSION
$DEPS scikit-image pip pytest setuptools Cython six>=1.7
pyyaml
- source activate testenv
- pip install Cython
- pip install "numpy>=1.16"
- pip install git+git://github.com/guaix-ucm/numina.git#egg=numina
- pip install $DEPS scikit-image pip pytest setuptools Cython six>=1.7
- pip install pytest-benchmark pytest-cov
- if [[ $COVERAGE == true ]]; then pip install coveralls; fi
- if [[ $COVERAGE == true ]]; then pip install codeclimate-test-reporter; fi
- pip install -e git+git://github.com/guaix-ucm/numina.git#egg=numina
# Build in place so we can run tests
- python setup.py build_ext --inplace

script:
- py.test -s -v megaradrp
Expand Down

0 comments on commit 64a0ac4

Please sign in to comment.