diff --git a/.travis.yml b/.travis.yml index bfd46701c8be6d8c70d9746dcbdf16e77c9fcfde..b78e637961b386489136044f72c940220e81e2da 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,9 +6,16 @@ before_install: - sudo apt-get update -qq - sudo apt-get install -y swig - pip install -r requirements.txt + - pip install psycopg2 install: - pip install . -script: py.test +before_script: + - psql -c 'create database mutalyzer_test;' -U postgres + - mysql -e 'create database mutalyzer_test;' +script: + - py.test + - MUTALYZER_TEST_DATABASE_URI=postgres://postgres@127.0.0.1/mutalyzer_test py.test + - MUTALYZER_TEST_DATABASE_URI=mysql://travis@127.0.0.1/mutalyzer_test?charset=utf8 py.test notifications: slack: secure: "VsB4CPZCfUPpnt7sL94mYrws2B9VthQhY1+u7NBm6QkAopel0m1rx1vWx3gQCTR0t9vWiP+pSybtQ81PQFNrOSWDsb1QlyEK1JF1QUw5Zui+5wS8fwFM/sgwGIECuo6Oj0zCwC9KMM4olYEMC2c7TNHv4HgwWiMqEK9ItEYSLQY=" diff --git a/doc/testing.rst b/doc/testing.rst index db9f780276f591c616b5447de9535efb1442d4ab..9a3ae4b961ab3c10b1dd5027916d4a6e4f5188d3 100644 --- a/doc/testing.rst +++ b/doc/testing.rst @@ -32,8 +32,8 @@ PostgreSQL:: $ pg_virtualenv bash -c 'MUTALYZER_TEST_DATABASE_URI=postgres://${PGUSER}:${PGPASSWORD}@${PGHOST}:${PGPORT}/${PGDATABASE} py.test' Tests are `run automatically on Travis CI -<https://travis-ci.org/LUMC/mutalyzer>`_ for each pull request and push on -GitHub. +<https://travis-ci.org/LUMC/mutalyzer>`_ with SQLite, PostgreSQL, and MySQL, +for each pull request and push on GitHub. Testing the web services