Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
scls19fr committed May 11, 2018
2 parents f345ea8 + 8dcf1cf commit eab3499
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 21 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ htmlcov/
nosetests.xml
coverage.xml
*,cover
.pytest_cache/

# Translations
*.mo
Expand Down
50 changes: 30 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,37 @@ sudo: false

language: python

env:
- CONDA="python=2.7"
- CONDA="python=3.4"
- CONDA="python=3.5"
- CONDA="python=3.6"
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 update --all --yes
- conda config --add channels ioos -f
- travis_retry conda create --yes -n TEST $CONDA --file requirements.txt
- source activate TEST
- travis_retry conda install --yes --file requirements-dev.txt
- travis_retry pip install check-manifest
# GUI
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- 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
- pip install check-manifest
# GUI
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"

script:
- nosetests tests --verbose
- flake8 --version
- flake8 --ignore=E501 windrose samples tests
- if [[ $TEST_TARGET == 'default' ]]; then
pytest --verbose tests ;
fi

- if [[ $TEST_TARGET == 'coding_standards' ]]; then
flake8 --ignore=E501 windrose samples tests ;
fi
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
flake8
nose
pytest
coverage

0 comments on commit eab3499

Please sign in to comment.