forked from dahlia/sqlalchemy-imageattach
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (47 loc) · 2.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
language: python
sudo: false
python:
- 2.6
- 2.7
- 3.2
- 3.3
- 3.4
- pypy
env:
global:
- secure: "m2miJTnJPlSo2xFppOenQpzrCwxOyUztMlNdQ3GSrkVnE5g/USsFTfD018Si\nniQDBkt2B8+JJZWo42SdP+8rf75y6piwNRxgmMWyON8s9Jsq5g+QFHKaCwtc\nobEYzrrHkCahZ+lUedGL+8ff9zvYm+IcdKpiLQTET84K1ctrRyE="
- secure: "qnxIMBzUhRnT6TpEn1CfD6vQltzwppNjdJ2PL9bO12jyETIuwo+ktaJ8r5bc\nKVI8rZW5sdD4sO0qEsz5JJSGh2Ih+Y9YiXg8OzK28noLocXQgv0TItO7sghl\nHPHcwEzfH4PtkS8v+0f82nS74WXAEsNZLi2lhpghH3ODFd8ZYI0="
- IMAGEATTACH_TEST_S3_NAME=sqla-imageattach-test
- IMAGEATTACH_TEST_S3_SANDBOX_NAME=sqla-imageattach-test2
matrix:
- DB=sqlite IMAGEATTACH_TEST_DATABASE_URL='sqlite://'
- DB=postgresql IMAGEATTACH_TEST_DATABASE_URL='postgresql:///si_test?user=postgres'
- DB=mysql IMAGEATTACH_TEST_DATABASE_URL='mysql+mysqlconnector://root@localhost/si_test'
matrix:
exclude:
- python: 3.2
env: DB=mysql IMAGEATTACH_TEST_DATABASE_URL='mysql+mysqlconnector://root@localhost/si_test'
before_install:
- export PY=`python -c 'import sys;print("pypy" if hasattr(sys,"pypy_version_info") else "%d.%d" % sys.version_info[:2])'`
install:
- pip install pytest WebOb pytest-capturelog pytest-cov flake8 coveralls
- if [ "$DB" = "postgresql" ]; then if [ "$PY" = "pypy" ]; then pip install psycopg2ct; else pip install psycopg2; fi; fi
- if [ "$DB" = "mysql" ]; then if [ "$PY" = "pypy" ]; then pip install PyMySQL; export IMAGEATTACH_TEST_DATABASE_URL=${IMAGEATTACH_TEST_DATABASE_URL/mysqlconnector/pymysql}; else pip install --allow-all-external mysql-connector-python; fi; fi
- pip install "SQLAlchemy>=0.9.0" -e .
before_script:
- if [ "$DB" = "postgresql" ]; then createdb -U postgres -E utf8 -T postgres si_test; fi
- if [ "$DB" = "mysql" ]; then mysql -e "CREATE DATABASE si_test;"; fi
script:
- py.test --cov sqlalchemy_imageattach --durations=20 # SQLAlchemy 0.9
- pip uninstall --yes SQLAlchemy
- pip install "SQLAlchemy>=0.8.0,<0.9.0"
- py.test sqlalchemy_imageattach # SQLAlchemy 0.8
- flake8
after_success:
- coveralls
notifications:
irc:
channels:
- "ircs://ssl.ozinger.org:16667#hongminhee"
on_success: change
on_failure: always