forked from edgewall/trac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (29 loc) · 1.08 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
language: python
sudo: false
python:
- "2.6"
- "2.7_with_system_site_packages"
env:
- "TRAC_TEST_DB_URI="
- "TRAC_TEST_DB_URI=sqlite:test.db"
- "TRAC_TEST_DB_URI=postgres://tracuser:password@localhost/trac?schema=tractest"
- "TRAC_TEST_DB_URI=mysql://tracuser:password@localhost/trac"
before_install:
- psql -U postgres -c "CREATE USER tracuser NOSUPERUSER NOCREATEDB CREATEROLE PASSWORD 'password';"
- psql -U postgres -c "CREATE DATABASE trac OWNER tracuser;"
- mysql -u root -e "CREATE DATABASE trac DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;"
- mysql -u root -e "CREATE USER tracuser@localhost IDENTIFIED BY 'password';"
- mysql -u root -e "GRANT ALL ON trac.* TO tracuser@localhost; FLUSH PRIVILEGES;"
install:
- pip install -q Genshi==0.7 'Babel!=2.3.0,!=2.3.1' Pygments docutils lxml pytz twill==0.9.1 psycopg2 MySQL-python
- echo ".uri = $TRAC_TEST_DB_URI" >Makefile.cfg
addons:
apt:
packages:
- python-subversion
script:
- make Trac.egg-info compile unit-test functional-test
notifications:
email:
recipients: