-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
63 lines (52 loc) · 1.46 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
dist: bionic
language: python
sudo: false
services:
- xvfb
cache:
directories:
- eggs
- downloads
python:
- 2.7
matrix:
include:
- python: "2.7"
env: PLONE_VERSION=4.3 TEST_EGG=collective.messagesviewlet[plone4,test]
- python: "2.7"
env: PLONE_VERSION=5.1 TEST_EGG=collective.messagesviewlet[test]
- python: "2.7"
env: PLONE_VERSION=5.2 TEST_EGG=collective.messagesviewlet[test]
- python: "3.7"
env: PLONE_VERSION=5.2 TEST_EGG=collective.messagesviewlet[test]
- python: "3.7"
env: PLONE_VERSION=6.x TEST_EGG=collective.messagesviewlet[test]
sudo: true
fast_finish: true
before_install:
- sudo apt-get install -y firefox-geckodriver
- virtualenv -p `which python` .
- cp plone-$PLONE_VERSION.x.cfg buildout.cfg
install:
- echo $PLONE_VERSION
- echo $TEST_EGG
- sed -ie "s#collective.messagesviewlet\[test\]#$TEST_EGG#" base.cfg
- cat buildout.cfg
- bin/pip install -r requirements.txt
- bin/buildout -N buildout:download-cache=downloads code-analysis:return-status-codes=True annotate
- bin/buildout -N buildout:download-cache=downloads code-analysis:return-status-codes=True
- cat bin/test
before_script:
- 'export DISPLAY=:99.0'
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- sleep 3
- firefox -v
script:
- bin/test --all
after_success:
- bin/createcoverage --output-dir htmlcov
- bin/pip install coveralls==0.5
- bin/coveralls
notifications:
email:
- devs@imio.be