forked from buildsample/sample_python_mysql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshippable.yml
More file actions
30 lines (23 loc) · 712 Bytes
/
shippable.yml
File metadata and controls
30 lines (23 loc) · 712 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
#build_image: shippable/minv2:beta
python:
- 2.7
- 2.6
install:
- pip install -r requirements.txt
# Make folders for the reports, and create the SQL db
before_script:
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
- mysql -e 'drop database if exists test;'
- mysql -e "create database if not exists \`some-test\` ;"
script:
- nosetests some-test.py --with-xunit --xunit-file=shippable/testresults/nosetests.xml
- which python && coverage run --branch some-test.py
- which python && coverage xml -o shippable/codecoverage/coverage.xml some-test.py
notifications:
email: false
#cache: true
after_script:
- cp README.md ./shippable
archive: true