forked from Blazemeter/taurus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (57 loc) · 1.52 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
65
66
67
sudo: false
language: python
dist: bionic
cache: pip # use caching for pip's packages to speed up builds
branches:
only:
- master
os: linux
python:
- "3.6"
- "3.7"
- "3.8"
env:
global:
- DISPLAY=:99.0
- PIP_INSTALL="pip install"
- GENERAL_EXCLUDE="--exclude-dir=tests/resources --exclude-dir=tests/ci"
- PYTHON=python
matrix:
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.modules.selenium.test_csharp"
addons:
firefox: latest
chrome: stable
apt:
packages:
- openjdk-8-jdk
- mono-complete
- python-tk
- python3-tk
install:
- |
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
mono --version
else
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
- $PIP_INSTALL -r requirements.txt
- $PIP_INSTALL -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:
- coverage run --source=. -m nose tests -v $GENERAL_EXCLUDE $OSX_EXCLUDE --with-timer --timer-top-n 30
after_success:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then coverage report -m && codecov; fi