forked from buildsample/sample_python_postgres
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathshippable.yml
More file actions
37 lines (27 loc) · 893 Bytes
/
shippable.yml
File metadata and controls
37 lines (27 loc) · 893 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
31
32
33
34
35
36
37
language: python
python:
- 2.7
- 2.6
install:
- pip install -r requirements.txt
# 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 'drop database if exists test;' -U postgres -w
- 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
#cache: true
after_script:
- cp README.md ./shippable
archive: true
notifications:
email:
recipients:
- buildsampletest@gmail.com
on_success: always
on_failure: always