Skip to content

Commit

Permalink
Merge pull request #27 from collective/maurits/travis
Browse files Browse the repository at this point in the history
Simplify (and hopefully fix) Travis.
  • Loading branch information
mauritsvanrees committed Oct 8, 2019
2 parents 3bdb6e2 + 932e83c commit 4469602
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
dist: bionic
language: python
python:
- "2.7"
- "3.6"

sudo: false

cache:
pip: true
directories:
- $HOME/buildout-cache
- eggs

matrix:
include:
Expand All @@ -20,27 +16,14 @@ matrix:
env: PLONE_VERSION=5.2.x
- python: "3.6"
env: PLONE_VERSION=5.2.x
exclude:
- python: "2.7"
- python: "3.6"


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.txt

install:
- sudo apt-get -qq install libfreetype6-dev liblcms1-dev
- sed -ie "s#plone-x.x.x.cfg#plone-$PLONE_VERSION.cfg#" travis.cfg
- buildout -t 10 -c travis.cfg

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- bin/code-analysis
- bin/test
Expand Down

0 comments on commit 4469602

Please sign in to comment.