-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (38 loc) · 1.19 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
dist: bionic
language: python
sudo: false
cache:
pip: true
directories:
- buildout-cache
python:
- "2.7"
matrix:
include:
- python: "2.7"
env: PLONE_VERSION="4.3" PART="test"
- python: "2.7"
env: PLONE_VERSION="5.1" PART="test"
- python: "2.7"
env: PLONE_VERSION="5.2" PART="test"
- python: "3.7"
env: PLONE_VERSION="5.2" PART="test"
- python: "3.7"
env: PLONE_VERSION="5.2" PART="code-analysis"
sudo: true
fast_finish: true
before_install:
- virtualenv -p `which python` .
- 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 -p `which python` .
- bin/pip install -r requirements.txt
- sed -ie "s#5.1-latest#$PLONE_VERSION-latest#" buildout.cfg
- bin/buildout -N buildout:download-cache=downloads code-analysis:return-status-codes=True annotate
install:
- bin/buildout -N buildout:download-cache=downloads code-analysis:return-status-codes=True install $PART
script:
- bin/$PART