forked from pycontribs/jira
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
87 lines (86 loc) · 2.68 KB
/
.travis.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
language: python
sudo: false
matrix:
fast_finish: false
os:
- linux
python:
- '2.6'
- '2.7'
- '3.4'
- '3.5'
install:
- pip -q install ipython || echo "optional skipped"
- pip -q install pytest-cache || echo "optional skipped"
- pip -q install unittest2 || echo "optional skipped"
- pip -q install ordereddict || echo "optional skipped"
- pip -q install coveralls
script:
- travis_wait make test
- export PACKAGE_VERSION=$(python -c "from jira.version import __version__; print(__version__)")
after_success:
- python travis_after_all.py
- export $(cat .to_export_back)
- |
if [ "$BUILD_LEADER" = "YES" ]; then
if [ "$BUILD_AGGREGATE_STATUS" = "others_succeeded" ]; then
echo "All jobs succeeded! PUBLISHING..."
else
echo "Some jobs failed"
fi
fi
- coveralls
- travis_wait python setup.py prerelease
- requires.io update-site -t ac3bbcca32ae03237a6aae2b02eb9411045489bb -r
- python setup.py build_sphinx upload_docs sdist bdist_wheel
after_failure:
- python travis_after_all.py
- export $(cat .to_export_back)
- |
if [ "$BUILD_LEADER" = "YES" ]; then
if [ "$BUILD_AGGREGATE_STATUS" = "others_failed" ]; then
echo "All jobs failed"
else
echo "Some jobs failed"
fi
fi
after_script:
- echo leader=$BUILD_LEADER status=$BUILD_AGGREGATE_STATUS
branches:
only:
- master
- develop
notifications:
email:
before_deploy:
- echo "before deploy..."
deploy:
- provider: releases
api_key:
secure: "gr9iOcQjdoAyUAim6FWKzJI9MBaJo9XKfGQGu7wdPXUFhg80Rp6GLJsowP+aU94NjXM1UQlVHDAy627WtjBlLH2SvmVEIIr7+UKBopBYuXG5jJ1m3wOZE+4f1Pqe9bqFc1DxgucqE8qF0sC24fIbNM2ToeyYrxrS6RoL2gRrX2I="
file: "dist/jira-$PACKAGE_VERSION.tar.gz"
skip_cleanup: true
on:
condition: "$BUILD_LEADER = YES"
- provider: pypi
user: sorin
password:
secure: "E0cjANF7SLBdYrsnWLK8X/xWznqkF0JrP/DVfDazPzUYH6ynFeneyofzNJQPLTLsqe1eKXhuUJ/Sbl+RHFB0ySo/j/7NfYd/9pm8hpUkGCvR09IwtvMLgWKp3k10NWab03o2GOkSJSrLvZofyZBGR40wwu2O9uXPCb2rvucCGbw="
distributions: "sdist bdist_wheel"
on:
condition: "$BUILD_LEADER = YES"
branch: master
- provider: pypi
server: https://testpypi.python.org/pypi
user: sorins
password:
secure: "E0cjANF7SLBdYrsnWLK8X/xWznqkF0JrP/DVfDazPzUYH6ynFeneyofzNJQPLTLsqe1eKXhuUJ/Sbl+RHFB0ySo/j/7NfYd/9pm8hpUkGCvR09IwtvMLgWKp3k10NWab03o2GOkSJSrLvZofyZBGR40wwu2O9uXPCb2rvucCGbw="
distributions: "sdist bdist_wheel"
on:
condition: "$BUILD_LEADER = YES"
branch: develop
after_deploy:
- echo "Now we only have to increase the version number, tag the changset and push..."
- ./release.sh