forked from Blazemeter/taurus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (54 loc) · 1.6 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
57
58
59
60
61
62
63
64
language: python
dist: focal
cache: pip # use caching for pip's packages to speed up builds
branches:
only:
- master
os: linux
python:
- "3.7"
- "3.8"
- "3.9"
env:
global:
- DISPLAY=:99.0
- PIP_INSTALL="pip install"
- PYTHON=python
jobs:
include:
- os: osx
name: "Python 3 on macOS"
osx_image: xcode11 # Python 3.7.4 running on macOS 10.14.4
language: shell
env:
- PYTHON=python3
- PIP_INSTALL="sudo pip3 install"
- RVM_KEY="409B6B1796C275462A1703113804BB82D39DC0E3"
- OSX_EXCLUDE="--exclude-test=tests.unit.modules._selenium.test_csharp"
addons:
firefox: latest
chrome: stable
apt:
packages:
- python-tk
- python3-tk
install:
- |
if [ "$TRAVIS_OS_NAME" != "linux" ]; then
gpg --keyserver hkp://keys.gnupg.net --recv-keys $RVM_KEY && rvm get stable || echo "rvm update fail"
fi
- gem install rspec
- $PIP_INSTALL --upgrade pip
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_PYTHON_VERSION" = "3.9" ]; then $PIP_INSTALL Cython; fi
- $PIP_INSTALL -r requirements.txt -r tests/ci/requirements.txt
before_script:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then nohup bash -c "Xvfb :99 &"; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then sudo nohup bash -c "xvfb :99 &"; fi
- $PYTHON tests/resources/httpserver/start.py &
- SCRIPT_RUNNER=$PYTHON
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_PYTHON_VERSION" = "3.8" ]; then CHECK_COV=true; fi
- if [ "$CHECK_COV" = true ]; then SCRIPT_RUNNER="coverage run --source=bzt"; fi
script:
- $SCRIPT_RUNNER -m nose2 -s tests/unit -v
after_success:
- if [ "$CHECK_COV" = true ]; then coverage report -m && codecov; fi