-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
48 lines (48 loc) · 1.26 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
services:
- xvfb
language: python
python: 2.7
cache:
directories:
- $HOME/.pylint.d
- eggs
- parts/node
- geckodriver
addons:
firefox: "81.0"
env:
- PLONE_VERSION=4.3 TEST_EGGS=collective.cover[test]
- PLONE_VERSION=5.1
matrix:
fast_finish: true
install:
- sed -ie "s#4.3.x.cfg#$PLONE_VERSION.x.cfg#" buildout.cfg
- virtualenv -p `which python` .
- bin/pip install -r requirements.txt
- bin/buildout buildout:test-eggs=$TEST_EGGS annotate
- bin/buildout buildout:test-eggs=$TEST_EGGS
before_script:
- >
if [ ! -f geckodriver/geckodriver ]; then
GECKODRIVER_VERSION=0.27.0
wget https://github.com/mozilla/geckodriver/releases/download/v$GECKODRIVER_VERSION/geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz
tar -xzf geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz -C geckodriver
fi;
- export PATH=$PATH:$PWD/geckodriver
- firefox -v
script:
- bin/code-analysis
- bin/test
- bin/pylint --py3k --disable=no-absolute-import src/sc/embedder || true
after_success:
- pip install coverage
- coverage run bin/test --layer=\!Robot
# Coveralls
- pip install coveralls
- coveralls
# Codacy
- coverage xml
- pip install codacy-coverage
- python-codacy-coverage -r coverage.xml
notifications:
irc: irc.freenode.org#simplesconsultoria