forked from TestingCI/sample_python_mysql
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathshippable.yml
More file actions
33 lines (26 loc) · 752 Bytes
/
shippable.yml
File metadata and controls
33 lines (26 loc) · 752 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
language: python
build_image: drydock/u12pytpls:tip
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\` ;"
- python --version
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
services:
- mysql
notifications:
email: false
#cache: true
after_script:
- cp README.md ./shippable
archive: true