forked from DaveTCode/confluence-python-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (33 loc) · 1.75 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
language: python
python: 3.6
install:
- pip install bandit codecov mypy pycodestyle safety typing
- python setup.py install
script:
- pycodestyle --first --exclude venv,.eggs
- safety check
- bandit -r . -x venv,tests,docs,.eggs
- mypy --py2 . --ignore-missing-imports
- wget https://packages.atlassian.com/list/atlassian-sdk-deb/deb-archive/atlassian-plugin-sdk_6.3.10_all.deb
- sudo dpkg -i atlassian-plugin-sdk_6.3.10_all.deb
- yes n | atlas-run-standalone --product confluence --version 6.6.0 --server localhost &>/dev/null &
- CONFLUENCE_PID=$!
- >
until $(curl --fail http://localhost:1990/confluence); do
sleep 5
done
- curl --fail http://localhost:1990/confluence/rest/api/space
- python setup.py test --addopts "tests integration_tests --cov confluence"
- kill -9 $CONFLUENCE_PID
after_success:
- codecov
deploy:
provider: pypi
distributions: sdist bdist_wheel
user: davetcode
password:
secure: e0TFZVtf49ypzOJBLXDqYacFrtPC9fGHeBOq68I6GcdunpSRi4VPKTZE1omBNeprZZKvMXoA2c9Uxig6jlD4kc0mYCcSO4xKMA0ZHirzvbtZSIIAllXQRBT8Ri+pstdR6Th424T3Ld6TOmrXtRmrVrO+jbKBH8rjITDs7gHPovm+Q+8Et98ObBxNIvnA74YeZBz8LMBY16PB3fFCtOUz8eG3DZg8Rzf6q5pE+4n7XvtojCSngIeHgLsl1tj6J2o7FmLc2zGyY4HDXwg6yIFrSclmjUsoEyp+hrFmq834Ru3gzUfTPerSYNip5n3coqtobJDawcx3se/n181xfxeE3jCK+tsCHLGA3JAfhLyTLTUP1WNjlWJ083PihIlLkprahsh+PiBG7eh3lLNgx8y6f2uCOwksLCa/K+GGo9doq5u5iGoHkBQFkd1Oo1KtKiejGOp7rDj8BuCenj30MybYLISC/eT1+ZESadiPAoGUd6xW8VKNCwX1jdiyan+SZQ9sqckWgd4NKsG2P+k23zLcN6hBN8jQFTdRwdsRT83iTuBi8+XG/YxIbsXYyxGNfLGyVYlZXA+jJnZmaYkT/L16JBI+Bi6RbUjA9xRypONEfpBp8aFvWVrNlp7f75RX6l6EpGVcL2BPTCWuKYWPjdlejGnRrJecAxEKMirEFv22PmE=
on:
tags: true
repo: DaveTCode/confluence-python-lib
condition: "$TRAVIS_TAG =~ ^[0-9]+[.][0-9]+[.][0-9]+(rc[0-9]+|[.]dev[0-9]+)?$"