-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
45 lines (45 loc) · 1.32 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
language: python
python:
- pypy
- 2.6
- 2.7
- 3.3
- 3.4
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
install:
- sudo apt-get install -qq gcc-4.8 g++-4.8 libstdc++-4.8-dev ack-grep
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20
- pip install pytest 'libsass>=0.6.1'
- if [ `python -c 'from platform import *; print(python_implementation())'` != 'PyPy' ]; then
pip install pytest pytest-cov pep8 coveralls;
fi
- pip install -e .
- npm install -g jshint
script:
- python -m libearth.version
- python setup.py --version
- if [ `python -c 'from platform import *; print(python_implementation())'` != 'PyPy' ]; then
py.test --cov earthreader --durations=10 &&
pep8 ||
exit $?;
if [[ $(ack-grep '\t') ]]; then echo 'Do not use hardtabs'; exit 1; fi;
else
py.test --durations=10;
fi
- earthreader -h > /dev/null
- python tests/html5lint.py
- jshint earthreader/web/static/js/master.js
after_success:
- if [ `python -c 'from platform import *; print(python_implementation())'` != 'PyPy' ]; then
coveralls;
fi
notifications:
irc:
channels:
- "irc.ozinger.org#earthreader"
- "chat.freenode.net#earthreader"
on_success: change
on_failure: always