forked from pyugrid/pyugrid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (27 loc) · 934 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
language: python
sudo: false
python:
- 2.7
- 3.4
- 3.5
env:
- TEST_TARGET=default
- TEST_TARGET=coding
before_install:
- wget http://bit.ly/miniconda -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- travis_retry conda create --yes -n TEST python=$TRAVIS_PYTHON_VERSION nomkl --file requirements.txt
- source activate TEST
- travis_retry pip install -r requirements-dev.txt
install:
- python setup.py sdist && version=$(python setup.py --version) && pushd dist && pip install pyugrid-${version}.tar.gz && popd
script:
- if [[ $TEST_TARGET == 'default' ]]; then
python setup.py test -a '--verbose --cov=pyugrid';
fi
- if [[ $TEST_TARGET == 'coding' ]]; then
find . -type f -name "*.py" ! -name 'conf.py' | xargs flake8 --max-line-length=100;
fi
notifications:
irc: "chat.freenode.net#renci"