Skip to content

Commit cdae31a

Browse files
committed
Make a script for running tests
This way we can run the tests the same way locally and at Travis. Otherwise I had forgotten how to run the tests.
1 parent 202cd37 commit cdae31a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ before_script:
1010
- psql -U postgres -c 'CREATE DATABASE "test";'
1111
- psql -U postgres -c 'CREATE USER jrandom SUPERUSER;'
1212
script:
13-
- DATABASE_URL=postgres://jrandom@localhost/test py.test tests.py -v
14-
- python postgres/__init__.py -v
15-
- python postgres/cursors.py -v
16-
- python postgres/orm.py -v
13+
- ./runtests.sh
1714
notifications:
1815
email: false
1916
irc:

runtests.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
DATABASE_URL=postgres://jrandom@localhost/test py.test tests.py -v
3+
python postgres/__init__.py -v
4+
python postgres/cursors.py -v
5+
python postgres/orm.py -v

0 commit comments

Comments
 (0)