-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Travis: test on more Python and Plone versions.
Do code-analysis separately, only on Plone 5.2 with Python 3.7. Too often in other add-ons with Plone 4.3 the buildout fails because bin/code-analysis cannot be generated, even though bin/test would have passed just fine.
- Loading branch information
1 parent
33d7270
commit c8b82ae
Showing
2 changed files
with
26 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,38 @@ | ||
dist: bionic | ||
language: python | ||
sudo: false | ||
cache: | ||
pip: true | ||
directories: | ||
- eggs | ||
- downloads | ||
- 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 | ||
install: | ||
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 | ||
- bin/buildout -N buildout:download-cache=downloads code-analysis:return-status-codes=True | ||
install: | ||
- bin/buildout -N buildout:download-cache=downloads code-analysis:return-status-codes=True install $PART | ||
script: | ||
- bin/test | ||
after_success: | ||
- bin/code-analysis | ||
- bin/$PART |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters