forked from plone/bobtemplates.plone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (50 loc) · 1.71 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
language: python
python: 2.7
sudo: false
cache:
pip: true
directories:
- $HOME/buildout-cache
before_install:
- mkdir -p $HOME/buildout-cache/{eggs,downloads}
- mkdir $HOME/.buildout
- echo "[buildout]" > $HOME/.buildout/default.cfg
- echo "download-cache = $HOME/buildout-cache/downloads" >> $HOME/.buildout/default.cfg
- echo "eggs-directory = $HOME/buildout-cache/eggs" >> $HOME/.buildout/default.cfg
- virtualenv .
- bin/pip install --upgrade pip setuptools zc.buildout
install:
- bin/buildout -N -t 3 -c travis.cfg
env:
matrix:
- PLONE_VERSION= PACKAGE_TYPE=
- PLONE_VERSION=4.3.10 PACKAGE_TYPE=Basic
- PLONE_VERSION=4.3.10 PACKAGE_TYPE=Dexterity
- PLONE_VERSION=4.3.10 PACKAGE_TYPE=Theme
- PLONE_VERSION=5.0.5 PACKAGE_TYPE=Basic
- PLONE_VERSION=5.0.5 PACKAGE_TYPE=Dexterity
- PLONE_VERSION=5.0.5 PACKAGE_TYPE=Theme
install:
- pip install docutils
- sed -ie "s/^plone.version.*/plone.version = $PLONE_VERSION/g" test_answers.ini
- sed -ie "s/^package.type.*/package.type = $PACKAGE_TYPE/g" test_answers.ini
- if [[ "$PLONE_VERSION" == "" && "$PACKAGE_TYPE" == "" ]]; then sed -ie "s/^plone.version.*//g" test_answers.ini; sed -ie "s/^package.type.*//g" test_answers.ini; fi
- if [ "$PACKAGE_TYPE" == "Dexterity" ]; then echo "package.dexterity_type_name = MyDexterityTestType" >> test_answers.ini; fi
- bin/buildout -c travis.cfg
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- bin/check-readme
- bin/code-analysis
- bin/test
- bin/test-plone_addon
after_success:
- bin/createcoverage
- pip install -q coveralls
- coveralls
after_failure:
- cat test_answers.ini
notifications:
email:
- travis-reports@plone.com