Hi!
On Mon, Dec 01, 2014 at 08:53:34AM -0600, Ian Cordasco
<graffatcolmin...@gmail.com> wrote:
> Third, setting up a continuous integration system (like Travis CI) to
> run the tests after every push and whenever someone submits a pull
> request. The CI system can do the following:
I have always wanted to learn Travis CI. See my first attempt at
creating .travis.yml (attached).
Oleg.
--
Oleg Broytman http://phdru.name/ p...@phdru.name
Programmers don't die, they just GOSUB without RETURN.
language: python
python:
- "2.6"
- "2.7"
env:
- DB=mysql
- DB=postgres
- DB=sqlite
install:
- if [[ $DB == mysql ]]; then pip install --use-mirrors mysql-python; fi;
- if [[ $DB == postgres ]]; then pip install --use-mirrors psycopg2; fi;
- pip install --use-mirrors python-pytest
before_script:
- if [[ $DB == mysql ]]; then mysql -e 'create database sqlobject_test;'; fi;
- if [[ $DB == postgres ]]; then psql -c 'create database sqlobject_test;' -U
postgres; fi;
script:
- cd sqlobject
- if [[ $DB == mysql ]]; then /usr/bin/py.test-$TRAVIS_PYTHON_VERSION -D
mysql://root:@localhost/sqlobject_test; fi
- if [[ $DB == postgres ]]; then /usr/bin/py.test-$TRAVIS_PYTHON_VERSION -D
postgres://postgres:@localhost/sqlobject_test; fi
- if [[ $DB == sqlite ]]; then /usr/bin/py.test-$TRAVIS_PYTHON_VERSION -D
sqlite:///tmp/sqlobject_test.sqdb; fi
notifications:
email: true
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss