forked from sosy-lab/benchexec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (34 loc) · 1.14 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
# This file is part of BenchExec, a framework for reliable benchmarking:
# https://github.com/sosy-lab/benchexec
#
# SPDX-FileCopyrightText: 2007-2020 Dirk Beyer <https://www.sosy-lab.org>
#
# SPDX-License-Identifier: Apache-2.0
# trigger build for only pull requests.
if: type = pull_request
language: python
sudo: required
dist: bionic
python:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
install:
- pip install .
# Install code formatter black, but only on versions where it is available
- pip install black || true
before_script:
- sudo ./.travis-setup.sh "$USER"
# Disable one specific test that often fails on Travis.
# This is due to a deadlock in the Python interpreter or used libraries
# and this is difficult to fix, but occurs only in high-load environments.
- sed -i benchexec/test_integration/__init__.py -e '/test_simple_parallel/ i \ @unittest.skip("Fails nondeterministically on Travis, probably issue 656")'
script:
- python setup.py test
# Revert local modification before checking source format
- git checkout .
- if which black; then black . --check --diff; fi
notifications:
email: