forked from collective/collective.privacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (43 loc) · 1.08 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
os: linux
language: python
sudo: false
cache:
pip: true
directories:
- eggs
- downloads
jobs:
include:
- python: 2.7
env: PLONE_VERSION=4.3.x
- python: 2.7
env: PLONE_VERSION=5.0.x
- python: 2.7
env: PLONE_VERSION=5.1.x
- python: 2.7
env: PLONE_VERSION=5.2.x
- python: 3.6
env: PLONE_VERSION=5.2.x
before_install:
- sudo apt-get install -qqy firefox-geckodriver
install:
- virtualenv .
- bin/pip install -r requirements.txt
- sed -ie "s#plone-x.x.x.cfg#plone-$PLONE_VERSION.cfg#" travis.cfg
- bin/buildout -t 10 -c travis.cfg
- 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
before_script:
- 'export DISPLAY=:99.0'
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- sleep 3
- firefox -v
script:
- bin/code-analysis
- bin/test --all
after_success:
- bin/createcoverage
- bin/pip install coverage
- bin/python -m coverage.pickle2json
- pip install coveralls
- coveralls