configure travis
This commit is contained in:
parent
26d3f4ee21
commit
eb45b11713
2 changed files with 29 additions and 0 deletions
25
.travis.yml
Normal file
25
.travis.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
language: python
|
||||
|
||||
python:
|
||||
- "2.7"
|
||||
|
||||
services:
|
||||
- mysql
|
||||
|
||||
install:
|
||||
- pip install -r requirements.txt
|
||||
- pip install --editable .
|
||||
|
||||
script:
|
||||
cd ./test_sites/ &&
|
||||
webnotes --reinstall -v test_site &&
|
||||
webnotes --run_tests -v test_site
|
||||
|
||||
branches:
|
||||
only:
|
||||
- testing
|
||||
|
||||
before_script:
|
||||
- mysql -e 'create database travis' &&
|
||||
- echo "USE mysql;\nUPDATE user SET password=PASSWORD('travis') WHERE user='travis';\nFLUSH PRIVILEGES;\n" | mysql -u root
|
||||
|
||||
4
test_sites/test_site/site_config.json
Normal file
4
test_sites/test_site/site_config.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"db_name": "travis",
|
||||
"db_password": "travis"
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue