-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
56 lines (52 loc) · 1.19 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
46
47
48
49
50
51
52
53
54
55
56
language: python
sudo: false
python:
- 2.7
- 3.4
- 3.5
- 3.6
- pypy
- pypy3
matrix:
allow_failures:
# Fail with an abort: https://bitbucket.org/pypy/pypy/issues/2571
- python: pypy3
before_install: # Use PyPy-5.8.0.
- cd "$HOME"
- |
if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then
deactivate
wget https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.8.0-linux64.tar.bz2
tar -jxvf pypy2-v5.8.0-linux64.tar.bz2
pushd pypy2-v5.8.0-linux64/bin
export PATH="$PWD:$PATH"
ln -s pypy python
./pypy -m ensurepip
pushd
fi
- |
if [[ $TRAVIS_PYTHON_VERSION == 'pypy3' ]]; then
deactivate
wget https://bitbucket.org/pypy/pypy/downloads/pypy3-v5.8.0-linux64.tar.bz2
tar -jxvf pypy3-v5.8.0-linux64.tar.bz2
pushd pypy3-v5.8.0-linux64/bin
export PATH="$PWD:$PATH"
ln -s pypy3 python
./pypy3 -m ensurepip
pushd
fi
- cd "$TRAVIS_BUILD_DIR"
install:
- pip install cython
- pip install -e .
- pip install coveralls
- pip install pytest-benchmark
script:
- coverage run --source=gauge setup.py test
- |
pytest gaugebenchmark.py \
--benchmark-group-by=func \
--benchmark-sort=mean \
--benchmark-min-time=0.1
after_success:
- coveralls