Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (33 sloc) 1.17 KB
language: python
sudo: false
matrix:
fast_finish: true
include:
- python: 2.7
env: TEST_TARGET=default
- python: 3.5
env: TEST_TARGET=default
- python: 3.6
env: TEST_TARGET=default
- python: 3.6
env: TEST_TARGET=coding_standards
before_install:
- wget http://bit.ly/miniconda -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
- conda update conda
- conda config --add channels conda-forge --force
- conda create --name TEST python=$TRAVIS_PYTHON_VERSION --file requirements.txt --file requirements-dev.txt
- source activate TEST
install:
# Test source distribution.
- python setup.py sdist && version=$(python setup.py --version) && pushd dist && pip install UTide-${version}.tar.gz && popd
script:
- if [[ $TEST_TARGET == 'default' ]]; then
py.test -vv ;
fi
- if [[ $TEST_TARGET == 'coding_standards' ]]; then
pycodestyle --ignore=E741,E226,W504 --max-line-length=100 tests ;
pycodestyle --ignore=E741,E226,W504 --max-line-length=100 utide ;
fi