forked from tmlbl/sample_python_postgres
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshippable.yml
More file actions
31 lines (20 loc) · 694 Bytes
/
shippable.yml
File metadata and controls
31 lines (20 loc) · 694 Bytes
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
language: python
python:
- 2.7
install:
- pip install -r requirements.txt
services:
#- mysql
- postgres
# Postgres binds to 127.0.0.1 by default and is started on boot. Default username is "postgres" with no password
# Create a DB as part of before script to use it
before_script:
- psql -c 'create database test;' -U postgres
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
script:
- nosetests test.py --with-xunit --xunit-file=shippable/testresults/nosetests.xml
- which python && coverage run --branch test.py
- which python && coverage xml -o shippable/codecoverage/coverage.xml test.py
build_image: drydock/u12pytpls:tip
archive: true