-
Notifications
You must be signed in to change notification settings - Fork 85
/
shippable.yml
executable file
·55 lines (43 loc) · 1.07 KB
/
shippable.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
language: python
#build_image: drydock/u14pytpls:prod
#build_image: shippable/minv2:beta
python:
- 2.6
- 2.7
- 3.2
- 3.3
- 3.4
- 3.5
- pypy
- pypy3
before_install:
# - source ~/.rvm/scripts/rvm && rvm use 1.9.
- if [[ $SHIPPABLE_PYTHON == '3.2' ]]; then pip install coverage==3.7.1 codecov ; fi
- echo $SHIPPABLE_PYTHON
install:
- pip install -r requirements.txt
# Make folders for the reports
before_script:
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
- git --version
- python --version
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
- echo $BUILD_NUMBER
- echo $BUILD_URL
- echo $BRANCH
archive: true
matrix:
allow_failures:
- python: 3.5
- python: pypy
notifications:
email:
recipients:
on_success: change
on_failure: always