File tree Expand file tree Collapse file tree 4 files changed +20
-7
lines changed
Expand file tree Collapse file tree 4 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 44 - " 3.7"
55 - " 3.8"
66env :
7- - POSTGRESQL_VERSION = 11.1
8- - POSTGRESQL_VERSION = 10.6
9- - POSTGRESQL_VERSION = 9.6
7+ - POSTGRESQL_VERSION= 11.1
8+ - POSTGRESQL_VERSION= 10.6
9+ - POSTGRESQL_VERSION= 9.6
1010before_install :
1111 - sudo service postgresql stop && sudo service postgresql start $POSTGRESQL_VERSION
1212install :
@@ -17,6 +17,6 @@ before_script:
1717 - psql -c "CREATE USER piccolo PASSWORD 'piccolo';" -U postgres
1818 - psql -c "GRANT ALL PRIVILEGES ON DATABASE piccolo TO piccolo;" -U postgres
1919script :
20- - cd tests && ./run-tests .sh
20+ - cd tests && ./travis .sh
2121after_success :
2222 - cd .. && coveralls
Original file line number Diff line number Diff line change 88
99export PICCOLO_CONF=" tests.postgres_conf"
1010python -m pytest --cov=piccolo -s $@
11-
12- # export PICCOLO_CONF="tests.sqlite_conf"
13- # python -m pytest --cov=piccolo -s $@
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # To run all in a folder tests/
3+ # To run all in a file tests/test_foo.py
4+ # To run all in a class tests/test_foo.py::TestFoo
5+ # To run a single test tests/test_foo.py::TestFoo::test_foo
6+
7+ cd ..
8+
9+ export PICCOLO_CONF=" tests.sqlite_conf"
10+ python -m pytest --cov=piccolo -s $@
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ cd ..
4+
5+ export PICCOLO_CONF=" tests.postgres_conf"
6+ python -m pytest --cov=piccolo -s $@
You can’t perform that action at this time.
0 commit comments