-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
40 lines (40 loc) · 1.2 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
language: python
sudo: false
matrix:
include:
- python: "2.7"
env: PLONE_VERSION=4.3.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
- python: "3.7"
env: PLONE_VERSION=5.2.x
dist: xenial
sudo: true
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
- pip install -r requirements-$PLONE_VERSION.txt
install:
- rm -rf $HOME/buildout-cache/eggs/plone.app.locales*
- buildout -N -t 3 annotate
- buildout -N -t 3 -c test-$PLONE_VERSION.cfg
script:
# Run code-analysis, except on Python 3.6, which mysteriously fails to find zc.buildout.
- python --version 2> /dev/stdout | grep 3.6 || bin/code-analysis
- bin/test --all
after_script:
- bin/createcoverage --output-dir=parts/test/coverage
after_success:
- pip install -q coveralls
- coveralls