forked from MozillaSecurity/ffpuppet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (34 loc) · 1.62 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
language: python
sudo: true
matrix:
include:
- os: linux
python: 2.7
- os: linux
python: 3.4
- os: linux
python: 3.5
- os: linux
python: 3.6
- os: linux
python: 3.7-dev
- os: osx
language: generic
allow_failures:
- os: linux
python: 3.8-dev
addons:
apt:
packages:
- gdb
- valgrind
before_install:
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then LATEST_VERSION=$(curl -s "https://github.com/Mozilla/rr/releases/latest" | grep -o 'tag/[v.0-9]*' | awk -F/ '{print $2}'); fi
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then sudo sysctl kernel.perf_event_paranoid=1; curl -L -o /tmp/rr.deb "https://github.com/mozilla/rr/releases/download/$LATEST_VERSION/rr-$LATEST_VERSION-Linux-$(uname -m).deb"; sudo dpkg -i /tmp/rr.deb; rm /tmp/rr.deb; fi
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then pip2 install pytest; fi
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then pip2 install -r requirements.txt; else pip install -r requirements.txt; fi
- if [[ $TRAVIS_OS_NAME == "linux" ]] && [ $TRAVIS_PYTHON_VERSION == 2.7 -o $TRAVIS_PYTHON_VERSION == 3.5 ]; then pip install pylint pytest-cov python-coveralls; fi
script:
- if [[ $TRAVIS_OS_NAME == "linux" ]] && [ $TRAVIS_PYTHON_VERSION == 2.7 -o $TRAVIS_PYTHON_VERSION == 3.5 ]; then pytest -v --cov=. --cov-report term-missing --cov-config .coveragerc && pylint --errors-only --ignored-classes=_socketobject --ignore=testff.py,testmdsw.py,debugger_windbg.py ffpuppet; else pytest -v; fi
after_success:
- if [[ $TRAVIS_OS_NAME == "linux" ]] && [ $TRAVIS_PYTHON_VERSION == 2.7 -o $TRAVIS_PYTHON_VERSION == 3.5 ]; then coveralls; fi