Skip to content

Commit

Permalink
modernize travis setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed Nov 27, 2015
1 parent af07e87 commit e941a78
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 182 deletions.
6 changes: 2 additions & 4 deletions .coveragerc
@@ -1,7 +1,5 @@
[report]
include =
src/yafowil/*
omit =
parts/*
eggs/*
*/test*
*/.buildout/*
*/lib/python2.7/site-packages/*
29 changes: 21 additions & 8 deletions .travis.yml
@@ -1,11 +1,24 @@
language: python
python: "2.7"
sudo: false
cache:
pip: true
directories:
- $HOME/buildout-cache
python:
- 2.7
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 coveralls createcoverage
install:
- python2.7 bootstrap.py
- ./bin/buildout -q
script: ./bin/test && bin/code-analysis
- bin/buildout -N -t 3 -c travis.cfg
script:
- bin/code-analysis
- bin/test
after_success:
- bin/coverage.sh
- pip install coveralls
- coveralls

- bin/createcoverage
- bin/coveralls
170 changes: 0 additions & 170 deletions bootstrap.py

This file was deleted.

7 changes: 7 additions & 0 deletions bootstrap.sh
@@ -0,0 +1,7 @@
#!/bin/sh

# see https://community.plone.org/t/not-using-bootstrap-py-as-default/620
rm -r ./lib ./include ./local ./bin
virtualenv --clear .
./bin/pip install --upgrade pip setuptools zc.buildout
./bin/buildout

0 comments on commit e941a78

Please sign in to comment.